prevent recursive panic from softlockup watchdog

From: Jan Beulich
Date: Wed Feb 08 2006 - 11:07:02 EST


From: Jan Beulich <jbeulich@xxxxxxxxxx>

When panic_timeout is zero, suppress triggering a nested panic due to soft
lockup detection.

Signed-Off-By: Jan Beulich <jbeulich@xxxxxxxxxx>

diff -Npru /home/jbeulich/tmp/linux-2.6.16-rc2/kernel/panic.c 2.6.16-rc2-panic-softlockup/kernel/panic.c
--- /home/jbeulich/tmp/linux-2.6.16-rc2/kernel/panic.c 2006-02-06 11:02:54.000000000 +0100
+++ 2.6.16-rc2-panic-softlockup/kernel/panic.c 2006-01-25 09:55:53.000000000 +0100
@@ -130,6 +130,7 @@ NORET_TYPE void panic(const char * fmt,
#endif
local_irq_enable();
for (i = 0;;) {
+ touch_softlockup_watchdog();
i += panic_blink(i);
mdelay(1);
i++;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/