From: Samuel Just Date: Tue, 4 Feb 2014 01:10:45 +0000 (-0800) Subject: ReplicatedPG: release_op_ctx_locks in all-applied, not all-committed X-Git-Tag: v0.78~163^2~54 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8b6d4c1256ce126727e56673396bdaa2c11da91;p=ceph.git ReplicatedPG: release_op_ctx_locks in all-applied, not all-committed Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 46db4b76cd77..3aa466437c62 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6100,8 +6100,6 @@ void ReplicatedPG::eval_repop(RepGather *repop) // ondisk? if (repop->all_committed) { - release_op_ctx_locks(repop->ctx); - log_op_stats(repop->ctx); publish_stats_to_osd(); @@ -6144,6 +6142,8 @@ void ReplicatedPG::eval_repop(RepGather *repop) // applied? if (repop->all_applied) { + release_op_ctx_locks(repop->ctx); + // send dup acks, in order if (waiting_for_ack.count(repop->v)) { assert(waiting_for_ack.begin()->first == repop->v);