summaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-15 15:47:58 +0200
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 20:45:57 +0200
commit66850df58529eefc61cb96b895991508547503bf (patch)
tree7faed8707d6ba961f6d0b3f9088c47cd15898e64 /include/linux/ceph
parent8c6286f1c69743ebdb2ee15f9165f9c4d44eef49 (diff)
downloadlinux-stable-66850df58529eefc61cb96b895991508547503bf.tar.gz
linux-stable-66850df58529eefc61cb96b895991508547503bf.tar.bz2
linux-stable-66850df58529eefc61cb96b895991508547503bf.zip
libceph: introduce ceph_osdc_abort_requests()
This will be used by the filesystem for "umount -f". Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osd_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h
index b73dd7ebe585..874c31c01f80 100644
--- a/include/linux/ceph/osd_client.h
+++ b/include/linux/ceph/osd_client.h
@@ -347,6 +347,7 @@ struct ceph_osd_client {
struct rb_root linger_map_checks;
atomic_t num_requests;
atomic_t num_homeless;
+ int abort_err;
struct delayed_work timeout_work;
struct delayed_work osds_timeout_work;
#ifdef CONFIG_DEBUG_FS
@@ -378,6 +379,7 @@ extern void ceph_osdc_handle_reply(struct ceph_osd_client *osdc,
extern void ceph_osdc_handle_map(struct ceph_osd_client *osdc,
struct ceph_msg *msg);
void ceph_osdc_update_epoch_barrier(struct ceph_osd_client *osdc, u32 eb);
+void ceph_osdc_abort_requests(struct ceph_osd_client *osdc, int err);
extern void osd_req_op_init(struct ceph_osd_request *osd_req,
unsigned int which, u16 opcode, u32 flags);