From: David Miller Date: Fri, 1 Aug 2008 08:11:22 +0000 (-0700) Subject: debug_locks: set oops_in_progress if we will log messages. X-Git-Tag: v3.12-rc1~18636^2~6^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0fdace10e75dac67d906213b780ff1b1a4cc360;p=kernel%2Fkernel-generic.git debug_locks: set oops_in_progress if we will log messages. Otherwise lock debugging messages on runqueue locks can deadlock the system due to the wakeups performed by printk(). Signed-off-by: David S. Miller Signed-off-by: Ingo Molnar --- diff --git a/lib/debug_locks.c b/lib/debug_locks.c index 0ef01d1..0218b46 100644 --- a/lib/debug_locks.c +++ b/lib/debug_locks.c @@ -8,6 +8,7 @@ * * Copyright (C) 2006 Red Hat, Inc., Ingo Molnar */ +#include #include #include #include @@ -37,6 +38,7 @@ int debug_locks_off(void) { if (xchg(&debug_locks, 0)) { if (!debug_locks_silent) { + oops_in_progress = 1; console_verbose(); return 1; }