Commit 7ecbe92
ksmbd: use F_SETLK when unlocking a file
ksmbd seems to be trying to use a cmd value of 0 when unlocking a file.
That activity requires a type of F_UNLCK with a cmd of F_SETLK. For
local POSIX locking, it doesn't matter much since vfs_lock_file ignores
@cmd, but filesystems that define their own ->lock operation expect to
see it set sanely.
Cc: David Howells <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: David Howells <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 37ba7b0 commit 7ecbe92
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6753 | 6753 | | |
6754 | 6754 | | |
6755 | 6755 | | |
6756 | | - | |
| 6756 | + | |
6757 | 6757 | | |
6758 | 6758 | | |
6759 | 6759 | | |
| |||
7131 | 7131 | | |
7132 | 7132 | | |
7133 | 7133 | | |
7134 | | - | |
| 7134 | + | |
7135 | 7135 | | |
7136 | 7136 | | |
7137 | 7137 | | |
| |||
0 commit comments