summaryrefslogtreecommitdiff
path: root/fs/ceph/super.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2015-07-01 11:27:46 +0300
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 23:14:28 +0300
commit48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9 (patch)
tree41b4e0cf38951bf49372e1272a08c8264bf3d943 /fs/ceph/super.c
parent64291f7db5bd8150a74ad2036f1037e6a0428df2 (diff)
downloadlinux-48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9.tar.xz
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>
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r--fs/ceph/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index d1c833c321b9..69e6e19bcfc1 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -708,6 +708,7 @@ static void ceph_umount_begin(struct super_block *sb)
if (!fsc)
return;
fsc->mount_state = CEPH_MOUNT_SHUTDOWN;
+ ceph_mdsc_force_umount(fsc->mdsc);
return;
}