From: Ingo Molnar Date: Thu, 7 Dec 2006 04:40:50 +0000 (-0800) Subject: [PATCH] lockdep: register_lock_class() fix X-Git-Tag: v2.6.20-rc1~145^2^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70e4506765602cca047cfa31933836e354c61a63;p=pandora-kernel.git [PATCH] lockdep: register_lock_class() fix The hash_lock must only ever be taken with irqs disabled. This happens in all the important places, except one codepath: register_lock_class(). The race should trigger rarely because register_lock_class() is quite rare and single-threaded (happens during init most of the time). The fix is to disable irqs. ( bug found live in -rt: there preemption is alot more agressive and preempting with the hash-lock held caused a lockup.) Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed