diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-09-11 10:58:55 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 12:11:28 +0100 |
commit | b3f8d68f38a879daed1eab66c0e19bc293096d34 (patch) | |
tree | 023cb0543b51e96e9ef9bcef6ee99837a4a967d6 /fs/ceph/ioctl.h | |
parent | 4deb14a2593dfade102dd94a803a63cf620cfd56 (diff) | |
download | linux-b3f8d68f38a879daed1eab66c0e19bc293096d34.tar.bz2 |
ceph: handle 'session get evicted while there are file locks'
When session get evicted, all file locks associated with the session
get released remotely by mds. File locks tracked by kernel become
stale. In this situation, set an error flag on inode. The flag makes
further file locks return -EIO.
Another option to handle this situation is cleanup file locks tracked
kernel. I do not choose it because it is inconvenient to notify user
program about the error.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/ioctl.h')
0 files changed, 0 insertions, 0 deletions