]> git.baikalelectronics.ru Git - kernel.git/commit
Subject: lockdep: include all lock classes in all_lock_classes
authorDale Farnsworth <dale@farnsworth.org>
Mon, 25 Feb 2008 22:03:02 +0000 (23:03 +0100)
committerPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 25 Feb 2008 22:03:02 +0000 (23:03 +0100)
commit7e873a6e379174ffa0b83d5620a477e3a8789f01
treec3ad3133cef46f64d3a6dbb9773591bcf29b87f9
parentffb62c9f8243bcde7868c835771d991e0dccc763
Subject: lockdep: include all lock classes in all_lock_classes
Add each lock class to the all_lock_classes list when it is
first registered.

Previously, lock classes were added to all_lock_classes when
the lock class was first used.  Since one of the uses of the
list is to find unused locks, this didn't work well.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/lockdep.c