From f6fc1b30319a125fa74c8e0ce340b3f3ab409d55 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 3 May 2012 17:48:20 -0700 Subject: [PATCH] OSD: remove superfluous pg get/put around enqueue_op Signed-off-by: Samuel Just --- src/osd/OSD.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 31509494a8113..9284eb08f6fa0 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4489,10 +4489,8 @@ void OSD::handle_pg_scan(OpRequestRef op) pg = _lookup_lock_pg(m->pgid); assert(pg); - pg->get(); enqueue_op(pg, op); pg->unlock(); - pg->put(); } void OSD::handle_pg_backfill(OpRequestRef op) @@ -4520,10 +4518,8 @@ void OSD::handle_pg_backfill(OpRequestRef op) pg = _lookup_lock_pg(m->pgid); assert(pg); - pg->get(); enqueue_op(pg, op); pg->unlock(); - pg->put(); } @@ -5162,10 +5158,8 @@ void OSD::handle_op(OpRequestRef op) } - pg->get(); enqueue_op(pg, op); pg->unlock(); - pg->put(); } bool OSD::op_has_sufficient_caps(PG *pg, MOSDOp *op) @@ -5228,10 +5222,8 @@ void OSD::handle_sub_op(OpRequestRef op) if (!pg) { return; } - pg->get(); enqueue_op(pg, op); pg->unlock(); - pg->put(); } void OSD::handle_sub_op_reply(OpRequestRef op) @@ -5263,10 +5255,8 @@ void OSD::handle_sub_op_reply(OpRequestRef op) if (!pg) { return; } - pg->get(); enqueue_op(pg, op); pg->unlock(); - pg->put(); } bool OSD::op_is_discardable(MOSDOp *op) -- 2.39.5