* [PATCH] BUG_ON() in ksoftirqd is a bit too agressive...
@ 2005-05-18 23:51 George Anzinger
2005-05-23 7:28 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: George Anzinger @ 2005-05-18 23:51 UTC (permalink / raw)
To: Ingo Molnar, linux-kernel@vger.kernel.org; +Cc: Corey Minyard
Ksoftirqd is created by init, long after the timer system is up and running. We
have hit the BUG_ON(tasklet_... in this code, i.e. tasklets pending at ksoftirqd
create time. Since, with the RT option to push all softirq code to a thread,
any softirqs are defered to this time, it is easy to hit this bug. Clearly only
a problem for cpu 0. Here is a patch:
Index: linux-2.6.10/kernel/softirq.c
===================================================================
--- linux-2.6.10.orig/kernel/softirq.c
+++ linux-2.6.10/kernel/softirq.c
@@ -514,8 +514,12 @@
switch (action) {
case CPU_UP_PREPARE:
- BUG_ON(per_cpu(tasklet_vec, hotcpu).list);
- BUG_ON(per_cpu(tasklet_hi_vec, hotcpu).list);
+ /* We may have tasklets already scheduled on
+ processor 0, so don't check there. */
+ if (hotcpu != 0) {
+ BUG_ON(per_cpu(tasklet_vec, hotcpu).list);
+ BUG_ON(per_cpu(tasklet_hi_vec, hotcpu).list);
+ }
p = kthread_create(ksoftirqd, hcpu, "ksoftirqd/%d", hotcpu);
if (IS_ERR(p)) {
printk("ksoftirqd for %i failed\n", hotcpu);
--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-23 7:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 23:51 [PATCH] BUG_ON() in ksoftirqd is a bit too agressive George Anzinger
2005-05-23 7:28 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox