public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sysrq: disable lockdep on reboot
@ 2006-09-26 15:13 Peter Zijlstra
  2006-09-27  8:10 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Zijlstra @ 2006-09-26 15:13 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton; +Cc: notting, Dave Jones, Ingo Molnar, arjan

SysRq : Emergency Sync
Emergency Sync complete
SysRq : Emergency Remount R/O
Emergency Remount complete
SysRq : Resetting
BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted)

Call Trace:
 [<ffffffff8026d56d>] show_trace+0xae/0x319
 [<ffffffff8026d7ed>] dump_stack+0x15/0x17
 [<ffffffff802a68d1>] trace_hardirqs_on+0xbc/0x13d
 [<ffffffff803a8eec>] sysrq_handle_reboot+0x9/0x11
 [<ffffffff803a8f8d>] __handle_sysrq+0x99/0x130
 [<ffffffff803a903b>] handle_sysrq+0x17/0x19
 [<ffffffff803a36ee>] kbd_event+0x32e/0x57d
 [<ffffffff80401e35>] input_event+0x42d/0x45b
 [<ffffffff804063eb>] atkbd_interrupt+0x44d/0x53d
 [<ffffffff803fe5c5>] serio_interrupt+0x49/0x86
 [<ffffffff803ff2a4>] i8042_interrupt+0x202/0x21a
 [<ffffffff80210cf0>] handle_IRQ_event+0x2c/0x64
 [<ffffffff802bfd8b>] __do_IRQ+0xaf/0x114
 [<ffffffff8026ea24>] do_IRQ+0xf8/0x107
 [<ffffffff8025f886>] ret_from_intr+0x0/0xf
DWARF2 unwinder stuck at ret_from_intr+0x0/0xf
Leftover inexact backtrace:
 <IRQ> <EOI> [<ffffffff80258e36>] mwait_idle+0x3f/0x54
 [<ffffffff8024a33a>] cpu_idle+0xa2/0xc5
 [<ffffffff8026c34e>] rest_init+0x2b/0x2d
 [<ffffffff809708bc>] start_kernel+0x24a/0x24c
 [<ffffffff8097028b>] _sinittext+0x28b/0x292

Since we're shutting down anyway, don't bother being smart,
just turn the thing off.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
 drivers/char/sysrq.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6-lappy/drivers/char/sysrq.c
===================================================================
--- linux-2.6-lappy.orig/drivers/char/sysrq.c	2006-09-26 17:08:02.000000000 +0200
+++ linux-2.6-lappy/drivers/char/sysrq.c	2006-09-26 17:10:16.000000000 +0200
@@ -113,6 +113,7 @@ static struct sysrq_key_op sysrq_crashdu
 static void sysrq_handle_reboot(int key, struct pt_regs *pt_regs,
 				struct tty_struct *tty)
 {
+	lockdep_off();
 	local_irq_enable();
 	emergency_restart();
 }



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sysrq: disable lockdep on reboot
  2006-09-26 15:13 [PATCH] sysrq: disable lockdep on reboot Peter Zijlstra
@ 2006-09-27  8:10 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2006-09-27  8:10 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: linux-kernel, Andrew Morton, notting, Dave Jones, arjan


* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

> SysRq : Emergency Sync
> Emergency Sync complete
> SysRq : Emergency Remount R/O
> Emergency Remount complete
> SysRq : Resetting
> BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted)

> Since we're shutting down anyway, don't bother being smart, just turn 
> the thing off.
> 
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>

agreed,

Acked-by: Ingo Molnar <mingo@elte.hu>

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-27  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 15:13 [PATCH] sysrq: disable lockdep on reboot Peter Zijlstra
2006-09-27  8:10 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox