浏览代码

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 <arjan@linux.intel.com>
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Arjan van de Ven 17 年之前
父节点
当前提交
e21f5b153b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/sched.c

+ 1 - 0
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);