From c7d11cd7b813a47167108c160358f70ec1aab7d6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 26 Aug 2012 08:42:06 -0700 Subject: [PATCH] osd: turn off lockdep during shutdown signal handler 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 --- src/osd/OSD.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index ab6cdd1d79469..161cf1196a405 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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(); -- 2.39.5