Skip to content

Commit 7a84602

Browse files
jtlaytonericvh
authored andcommitted
9p: explicitly deny setlease attempts
9p is a remote network protocol, and it doesn't support asynchronous notifications from the server. Ensure that we don't hand out any leases since we can't guarantee they'll be broken when a file's contents change. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 4e5d208 commit 7a84602

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/9p/vfs_file.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ const struct file_operations v9fs_file_operations = {
520520
.splice_read = v9fs_file_splice_read,
521521
.splice_write = iter_file_splice_write,
522522
.fsync = v9fs_file_fsync,
523+
.setlease = simple_nosetlease,
523524
};
524525

525526
const struct file_operations v9fs_file_operations_dotl = {
@@ -534,4 +535,5 @@ const struct file_operations v9fs_file_operations_dotl = {
534535
.splice_read = v9fs_file_splice_read,
535536
.splice_write = iter_file_splice_write,
536537
.fsync = v9fs_file_fsync_dotl,
538+
.setlease = simple_nosetlease,
537539
};

0 commit comments

Comments
 (0)