diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-07-25 15:16:45 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-09-16 13:06:24 +0300 |
commit | ff5d913dfc7142974eb1694d5fd6284658e46bc6 (patch) | |
tree | e32766142b247cb0ce44bfc35421d84fad567bb3 /fs/ceph/super.h | |
parent | d468e729b74eafdfc8306ca8f77e1f26478d67da (diff) | |
download | linux-ff5d913dfc7142974eb1694d5fd6284658e46bc6.tar.xz |
ceph: return -EIO if read/write against filp that lost file locks
After mds evicts session, file locks get lost sliently. It's not safe to
let programs continue to do read/write.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 7af7f2ba8da5..736318210bc9 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -707,6 +707,7 @@ struct ceph_file_info { struct list_head rw_contexts; errseq_t meta_err; + atomic_t num_locks; }; struct ceph_dir_file_info { |