]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: turn off lockdep during shutdown signal handler
authorSage Weil <sage@inktank.com>
Sun, 26 Aug 2012 15:42:06 +0000 (08:42 -0700)
committerSage Weil <sage@inktank.com>
Sun, 26 Aug 2012 15:42:06 +0000 (08:42 -0700)
We don't shut down all threads, and the surviving ones fight with
exit()'s teardown.  Kludge until we have a clean shutdown process.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index ab6cdd1d79469f52df9b089e40acb2933809c50f..161cf1196a405242d54f7cfabd8ce19c145ed499 100644 (file)
@@ -994,6 +994,9 @@ void OSD::suicide(int exitcode)
     _exit(exitcode);
   }
 
+  // turn off lockdep; the surviving threads tend to fight with exit() below
+  g_lockdep = 0;
+
   derr << " pausing thread pools" << dendl;
   op_tp.pause();
   disk_tp.pause();