diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-07-01 16:27:46 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-09-08 23:14:28 +0300 |
commit | 48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9 (patch) | |
tree | 41b4e0cf38951bf49372e1272a08c8264bf3d943 /fs/ceph/mds_client.h | |
parent | 64291f7db5bd8150a74ad2036f1037e6a0428df2 (diff) | |
download | talos-op-linux-48fec5d0a504dfbb302cb1dd24ebb0b82a46cce9.tar.gz talos-op-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.h | 1 |
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); |