ceph: EIO all operations after forced umount
authorYan, Zheng <zyan@redhat.com>
Wed, 1 Jul 2015 08:27:46 +0000 (16:27 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Sep 2015 20:14:28 +0000 (23:14 +0300)
commit48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9
tree41b4e0cf38951bf49372e1272a08c8264bf3d943
parent64291f7db5bd8150a74ad2036f1037e6a0428df2
ceph: EIO all operations after forced umount

This patch makes try_get_cap_refs() and __do_request() check
if the file system was forced umount, and return -EIO if it was.
This patch also adds a helper function to drops dirty caps and
wakes up blocking operation.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/super.c