From: Casey Bodley Date: Wed, 29 Jun 2016 19:10:31 +0000 (-0400) Subject: rgw: add deadlock detection to RGWCoroutinesManager::run() X-Git-Tag: v11.0.1~406^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f5be127e1d271b8c35ac74fbe10d4d25ee2c7e61;p=ceph-ci.git rgw: add deadlock detection to RGWCoroutinesManager::run() Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index a09afc85532..b1ff62dc97b 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -570,6 +570,7 @@ int RGWCoroutinesManager::run(list& stacks) } lock.get_write(); + assert(context_stacks.empty() || going_down.read()); // assert on deadlock for (auto stack : context_stacks) { ldout(cct, 20) << "clearing stack on run() exit: stack=" << (void *)stack << " nref=" << stack->get_nref() << dendl; stack->put();