Skip to content

Commit

Permalink
sched: print module list in the "scheduling while atomic" warning
Browse files Browse the repository at this point in the history
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 <arjan@linux.intel.com>
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Jun 6, 2008
1 parent c7aceab commit e21f5b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e21f5b1

Please sign in to comment.