[PATCH] x86_64: fix die_lock nesting
authorCorey Minyard <minyard@acm.org>
Mon, 8 May 2006 13:17:22 +0000 (15:17 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 8 May 2006 16:34:56 +0000 (09:34 -0700)
commitcdc60a4c8e71c4bcf67e83fac6c0cabd0ff19bfe
tree204e3ab2ccaa9828d0ea71b43891729b216db7bf
parent5192d84e4c32cd335fd572e5ff0712041f45f7e7
[PATCH] x86_64: fix die_lock nesting

I noticed this when poking around in this area.

The oops_begin() function in x86_64 would only conditionally claim
the die_lock if the call is nested, but oops_end() would always
release the spinlock. This patch adds a nest count for the die lock
so that the release of the lock is only done on the final oops_end().

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/traps.c