Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fuse: fix connection abort on mmap when fuse server returns ENOSYS
Check whether dlm is still enabled when interpreting the returned
error from fuse server.

Signed-off-by: Horst Birthelmer <[email protected]>
(cherry picked from commit f6fbf7c)
  • Loading branch information
hbirth authored and jianhuangli committed Jul 25, 2025
commit 3754b6e6eb4478846dfab32798e4a0c0ce8e8a47
2 changes: 1 addition & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ static int fuse_get_page_mkwrite_lock(struct file *file, loff_t offset, size_t l
err = 0;
}

if (!err && outarg.locksize < length) {
if (!err && fc->dlm && outarg.locksize < length) {
/* fuse server is seriously broken */
pr_warn("fuse: dlm lock request for %lu bytes returned %u bytes\n",
length, outarg.locksize);
Expand Down
Loading