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-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0fdace10e75dac67d906213b780ff1b1a4cc360;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 0ef01d14727c..0218b4693dd8 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; }