* [PATCH] nohz: don't stop idle tick if softirqs are pending.
@ 2008-07-11 9:09 Heiko Carstens
2008-07-11 9:18 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Carstens @ 2008-07-11 9:09 UTC (permalink / raw)
To: Thomas Gleixner, Andrew Morton
Cc: Ingo Molnar, Jan Glauber, Stefan Weinhuber, linux-kernel
Subject: [PATCH] nohz: don't stop idle tick if softirqs are pending.
From: Heiko Carstens <heiko.carstens@de.ibm.com>
In case a cpu goes idle but softirqs are pending only an error message is
printed to the console. It may take a very long time until the pending
softirqs will finally be executed. Worst case would be a hanging system.
With this patch the timer tick just continues and the softirqs will be
executed after the next interrupt. Still a delay but better than a
hanging system.
Currently we have at least two device drivers on s390 which under certain
circumstances schedule a tasklet from process context. This is a reason
why we can end up with pending softirqs when going idle. Fixing these
drivers seems to be non-trivial.
However there is no question that the drivers should be fixed.
This patch shouldn't be considered as a bug fix. It just is intended to
keep a system running even if device drivers are buggy.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
kernel/time/tick-sched.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6/kernel/time/tick-sched.c
===================================================================
--- linux-2.6.orig/kernel/time/tick-sched.c
+++ linux-2.6/kernel/time/tick-sched.c
@@ -228,6 +228,7 @@ void tick_nohz_stop_sched_tick(void)
local_softirq_pending());
ratelimit++;
}
+ goto end;
}
ts->idle_calls++;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] nohz: don't stop idle tick if softirqs are pending.
2008-07-11 9:09 [PATCH] nohz: don't stop idle tick if softirqs are pending Heiko Carstens
@ 2008-07-11 9:18 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-11 9:18 UTC (permalink / raw)
To: Heiko Carstens
Cc: Thomas Gleixner, Andrew Morton, Jan Glauber, Stefan Weinhuber,
linux-kernel
* Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
> Subject: [PATCH] nohz: don't stop idle tick if softirqs are pending.
applied to tip/timers/nohz, thanks Heiko.
> However there is no question that the drivers should be fixed. This
> patch shouldn't be considered as a bug fix. It just is intended to
> keep a system running even if device drivers are buggy.
agreed.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-11 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-11 9:09 [PATCH] nohz: don't stop idle tick if softirqs are pending Heiko Carstens
2008-07-11 9:18 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox