diff options
author | Jeff Layton <jlayton@kernel.org> | 2020-08-20 11:00:26 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-08-24 20:06:54 +0200 |
commit | 496ceaf12432b3d136dcdec48424312e71359ea7 (patch) | |
tree | 76675d39122bdb041d179a2ddf732ee4f29841bb /fs | |
parent | ebce3eb2f7ef9f6ef01a60874ebd232450107c9a (diff) | |
download | linux-stable-496ceaf12432b3d136dcdec48424312e71359ea7.tar.gz linux-stable-496ceaf12432b3d136dcdec48424312e71359ea7.tar.bz2 linux-stable-496ceaf12432b3d136dcdec48424312e71359ea7.zip |
ceph: don't allow setlease on cephfs
Leases don't currently work correctly on kcephfs, as they are not broken
when caps are revoked. They could eventually be implemented similarly to
how we did them in libcephfs, but for now don't allow them.
[ idryomov: no need for simple_nosetlease() in ceph_dir_fops and
ceph_snapdir_fops ]
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 81d2cc8dbb6d..7661a3f47772 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -2507,6 +2507,7 @@ const struct file_operations ceph_file_fops = { .mmap = ceph_mmap, .fsync = ceph_fsync, .lock = ceph_lock, + .setlease = simple_nosetlease, .flock = ceph_flock, .splice_read = generic_file_splice_read, .splice_write = iter_file_splice_write, |