From: Jianpeng Ma Date: Wed, 28 Mar 2018 12:17:12 +0000 (+0800) Subject: osdc: remove unused function. X-Git-Tag: v13.1.0~461^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21081%2Fhead;p=ceph.git osdc: remove unused function. Signed-off-by: Jianpeng Ma --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 62c3b62e70fb..89fc7bcc6326 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -3355,17 +3355,6 @@ int Objecter::take_linger_budget(LingerOp *info) return 1; } -void Objecter::unregister_op(Op *op) -{ - OSDSession::unique_lock sl(op->session->lock); - op->session->ops.erase(op->tid); - sl.unlock(); - put_session(op->session); - op->session = NULL; - - inflight_ops--; -} - /* This function DOES put the passed message before returning */ void Objecter::handle_osd_op_reply(MOSDOpReply *m) { diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 4a820a5c877c..d2507dcb6b5e 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -2162,8 +2162,6 @@ private: void _op_submit_with_budget(Op *op, shunique_lock& lc, ceph_tid_t *ptid, int *ctx_budget = NULL); - inline void unregister_op(Op *op); - // public interface public: void op_submit(Op *op, ceph_tid_t *ptid = NULL, int *ctx_budget = NULL);