summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2024-03-19 12:34:45 -0400
committerEric Van Hensbergen <ericvh@kernel.org>2024-03-28 19:52:55 +0000
commit7a84602297d36617dbdadeba55a2567031e5165b (patch)
tree89d2df3ddaf164edef1367d6618f551f2418f7ad /fs
parent4e5d208cc9bd5fbc95d536fa223b4b14c37b8ca8 (diff)
downloadlinux-stable-7a84602297d36617dbdadeba55a2567031e5165b.tar.gz
linux-stable-7a84602297d36617dbdadeba55a2567031e5165b.tar.bz2
linux-stable-7a84602297d36617dbdadeba55a2567031e5165b.zip
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 <jlayton@kernel.org> Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/vfs_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index abdbbaee5184..348cc90bf9c5 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -520,6 +520,7 @@ const struct file_operations v9fs_file_operations = {
.splice_read = v9fs_file_splice_read,
.splice_write = iter_file_splice_write,
.fsync = v9fs_file_fsync,
+ .setlease = simple_nosetlease,
};
const struct file_operations v9fs_file_operations_dotl = {
@@ -534,4 +535,5 @@ const struct file_operations v9fs_file_operations_dotl = {
.splice_read = v9fs_file_splice_read,
.splice_write = iter_file_splice_write,
.fsync = v9fs_file_fsync_dotl,
+ .setlease = simple_nosetlease,
};