From: Sage Weil Date: Wed, 23 Jul 2014 01:01:14 +0000 (-0700) Subject: osd/ReplicatedPG: debug obc locks X-Git-Tag: v0.83~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2140%2Fhead;p=ceph.git osd/ReplicatedPG: debug obc locks Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index f134830e2ad4..4ce2ea908b67 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4854,6 +4854,7 @@ void ReplicatedPG::make_writeable(OpContext *ctx) snap_oi = &ctx->clone_obc->obs.oi; bool got = ctx->clone_obc->get_write_greedy(ctx->op); assert(got); + dout(20) << " got greedy write on clone_obc " << *ctx->clone_obc << dendl; } else { snap_oi = &static_snap_oi; } @@ -5160,6 +5161,7 @@ void ReplicatedPG::finish_ctx(OpContext *ctx, int log_op_type, bool maintain_ssc ctx->snapset_obc = get_object_context(snapoid, true); bool got = ctx->snapset_obc->get_write_greedy(ctx->op); assert(got); + dout(20) << " got greedy write on snapset_obc " << *ctx->snapset_obc << dendl; ctx->release_snapset_obc = true; if (pool.info.require_rollback() && !ctx->snapset_obc->obs.exists) { ctx->log.back().mod_desc.create(); @@ -6839,6 +6841,12 @@ ReplicatedPG::RepGather *ReplicatedPG::new_repop(OpContext *ctx, ObjectContextRe void ReplicatedPG::remove_repop(RepGather *repop) { dout(20) << __func__ << " " << *repop << dendl; + if (repop->ctx->obc) + dout(20) << " obc " << *repop->ctx->obc << dendl; + if (repop->ctx->clone_obc) + dout(20) << " clone_obc " << *repop->ctx->clone_obc << dendl; + if (repop->ctx->snapset_obc) + dout(20) << " snapset_obc " << *repop->ctx->snapset_obc << dendl; release_op_ctx_locks(repop->ctx); repop->ctx->finish(0); // FIXME: return value here is sloppy repop_map.erase(repop->rep_tid);