ceph: return -EIO if read/write against filp that lost file locks
authorYan, Zheng <zyan@redhat.com>
Thu, 25 Jul 2019 12:16:45 +0000 (20:16 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commitff5d913dfc7142974eb1694d5fd6284658e46bc6
treee32766142b247cb0ce44bfc35421d84fad567bb3
parentd468e729b74eafdfc8306ca8f77e1f26478d67da
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>
fs/ceph/caps.c
fs/ceph/locks.c
fs/ceph/super.h