]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitb780f98f0e5b8240aa1ccc993f381ae9e19e152e
tree204e3ab2ccaa9828d0ea71b43891729b216db7bf
parentc6a311116215524ef60fc51618ab67a422819816
[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