Skip to contentSkip to conversation

sched: print module list in the "scheduling while atomic" warning

PATCH Applied Arjan van de Ven 2 participants 2 messages May 23, 2008 – May 27, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: print module list in the "scheduling while atomic" warning

From: Arjan van de Ven <[email protected]>
Subject: [PATCH] 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.

---
 kernel/sched.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
kernel/sched.c +1 -0
index cfa222a..764b5b6 100644
@@ -4411,6 +4411,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);
 
Signature · 1 line
1.5.4.5
#1 lore raw
Quoted 2 lines · Arjan van de Ven

From: Arjan van de Ven <[email protected]>
Subject: [PATCH] sched: print module list in the "scheduling while atomic" warning

Applied. Thanks,

tglx