]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CephContext: unregister lockdep after stopping service thread
authorSamuel Just <sam.just@inktank.com>
Thu, 14 Nov 2013 19:49:58 +0000 (11:49 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 14 Nov 2013 22:07:23 +0000 (14:07 -0800)
Fixes: #6769
Fixes: #6674
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/common/ceph_context.cc

index 4382dbf69af2d08ad6f41280278cfbd7020d20c1..3116abc3ff6d228b10e904898a2f8b73023b44c7 100644 (file)
@@ -292,12 +292,12 @@ CephContext::CephContext(uint32_t module_type_)
 
 CephContext::~CephContext()
 {
+  join_service_thread();
+
   if (_conf->lockdep) {
     lockdep_unregister_ceph_context(this);
   }
 
-  join_service_thread();
-
   _admin_socket->unregister_command("perfcounters_dump");
   _admin_socket->unregister_command("perf dump");
   _admin_socket->unregister_command("1");