mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
ebce3eb2f7
commit
496ceaf124
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue