]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: handle 'session get evicted while there are file locks'
authorYan, Zheng <zyan@redhat.com>
Mon, 11 Sep 2017 02:58:55 +0000 (10:58 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 11:11:28 +0000 (12:11 +0100)
commitb3f8d68f38a879daed1eab66c0e19bc293096d34
tree023cb0543b51e96e9ef9bcef6ee99837a4a967d6
parent4deb14a2593dfade102dd94a803a63cf620cfd56
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>
fs/ceph/locks.c
fs/ceph/mds_client.c
fs/ceph/super.h