From: Arjan van de Ven Date: Fri, 23 May 2008 16:05:58 +0000 (-0700) Subject: sched: print module list in the "scheduling while atomic" warning X-Git-Tag: v2.6.27-rc1~1105^2~67 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=e21f5b153b9b4a6775d7d41964e372e13a9178ab;p=linux-2.6-omap-h63xx.git sched: print module list in the "scheduling while atomic" warning For the normal WARN_ON() etc we added a print-the-modules-list already, which is very useful to figure out candidates for certain types of bugs. This patch adds the same print to the "scheduling while atomic" BUG warning, for the same reason: when we get here it's very useful to see which modules are loaded, to narrow down the candidate code list. Signed-off-by: Arjan van de Ven Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner --- diff --git a/kernel/sched.c b/kernel/sched.c index f3faec52c5a..84a360670b9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4070,6 +4070,7 @@ static noinline void __schedule_bug(struct task_struct *prev) prev->comm, prev->pid, preempt_count()); debug_show_held_locks(prev); + print_modules(); if (irqs_disabled()) print_irqtrace_events(prev);