]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: add deadlock detection to RGWCoroutinesManager::run()
authorCasey Bodley <cbodley@redhat.com>
Wed, 29 Jun 2016 19:10:31 +0000 (15:10 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 29 Jun 2016 23:57:47 +0000 (19:57 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_coroutine.cc

index a09afc85532cb044db8ad02417711b301913c402..b1ff62dc97baf921502cf0085292b79403175197 100644 (file)
@@ -570,6 +570,7 @@ int RGWCoroutinesManager::run(list<RGWCoroutinesStack *>& 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();