The dout() prefix does get_osdmap(), which requires (and asserts) that we
hold the pg lock, but in some cases we do not, notably
ReplicatedPG::object_context_destructor_callback.
Signed-off-by: Sage Weil <sage@inktank.com>
{
Mutex::Locker l(snapset_contexts_lock);
SnapSetContext *ssc = new SnapSetContext(oid);
- dout(10) << "create_snapset_context " << ssc << " " << ssc->oid << dendl;
_register_snapset_context(ssc);
ssc->ref++;
return ssc;
}
}
assert(ssc);
- dout(10) << "get_snapset_context " << ssc->oid << " "
- << ssc->ref << " -> " << (ssc->ref+1) << dendl;
ssc->ref++;
return ssc;
}
void ReplicatedPG::put_snapset_context(SnapSetContext *ssc)
{
Mutex::Locker l(snapset_contexts_lock);
- dout(10) << "put_snapset_context " << ssc->oid << " "
- << ssc->ref << " -> " << (ssc->ref-1) << dendl;
--ssc->ref;
if (ssc->ref == 0) {
if (ssc->registered)