summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.h
diff options
context:
space:
mode:
authorYan, Zheng2015-07-01 10:27:46 +0200
committerIlya Dryomov2015-09-08 22:14:28 +0200
commit48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9 (patch)
tree41b4e0cf38951bf49372e1272a08c8264bf3d943 /fs/ceph/mds_client.h
parentLinux 4.2 (diff)
downloadkernel-qcow2-linux-48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9.tar.gz
kernel-qcow2-linux-48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9.tar.xz
kernel-qcow2-linux-48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9.zip
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/mds_client.h')
-rw-r--r--fs/ceph/mds_client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h
index 762757e6cebf..f575eafe2261 100644
--- a/fs/ceph/mds_client.h
+++ b/fs/ceph/mds_client.h
@@ -366,6 +366,7 @@ extern int ceph_send_msg_mds(struct ceph_mds_client *mdsc,
extern int ceph_mdsc_init(struct ceph_fs_client *fsc);
extern void ceph_mdsc_close_sessions(struct ceph_mds_client *mdsc);
+extern void ceph_mdsc_force_umount(struct ceph_mds_client *mdsc);
extern void ceph_mdsc_destroy(struct ceph_fs_client *fsc);
extern void ceph_mdsc_sync(struct ceph_mds_client *mdsc);