]> err.no Git - linux-2.6/commit
[PATCH] lockdep ifdef fix
authorJarek Poplawski <jarkao2@o2.pl>
Wed, 6 Sep 2006 07:03:39 +0000 (00:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 6 Sep 2006 18:00:01 +0000 (11:00 -0700)
commitfc47e7b592dc45b03c27b0a4c8f2d215dae9944d
tree54ea55d491e2f708bc23655041668e19da3de619
parentc336923b668fdcf0312efbec3b44895d713f4d81
[PATCH] lockdep ifdef fix

With

CONFIG_SMP=y
CONFIG_PREEMPT=y
CONFIG_LOCKDEP=y
CONFIG_DEBUG_LOCK_ALLOC=y
# CONFIG_PROVE_LOCKING is not set

spin_unlock_irqrestore() goes through lockdep but spin_lock_irqsave() doesn't.
Apparently, bad things happen.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/spinlock.c