From f5be127e1d271b8c35ac74fbe10d4d25ee2c7e61 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 29 Jun 2016 15:10:31 -0400 Subject: [PATCH] rgw: add deadlock detection to RGWCoroutinesManager::run() Signed-off-by: Casey Bodley --- src/rgw/rgw_coroutine.cc | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5