* [PATCH] sched: print module list in the "scheduling while atomic" warning
@ 2008-05-23 16:05 Arjan van de Ven
2008-05-27 15:39 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Arjan van de Ven @ 2008-05-23 16:05 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo
From: Arjan van de Ven <arjan@linux.intel.com>
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.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
---
kernel/sched.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index cfa222a..764b5b6 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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);
--
1.5.4.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sched: print module list in the "scheduling while atomic" warning
2008-05-23 16:05 [PATCH] sched: print module list in the "scheduling while atomic" warning Arjan van de Ven
@ 2008-05-27 15:39 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2008-05-27 15:39 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: linux-kernel, mingo
On Fri, 23 May 2008, Arjan van de Ven wrote:
> From: Arjan van de Ven <arjan@linux.intel.com>
> Subject: [PATCH] sched: print module list in the "scheduling while atomic" warning
Applied. Thanks,
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-27 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-23 16:05 [PATCH] sched: print module list in the "scheduling while atomic" warning Arjan van de Ven
2008-05-27 15:39 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®