]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Lockdep: add lockdep_set_class_and_subclass() and lockdep_set_subclass()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 11 Oct 2006 05:45:14 +0000 (01:45 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 11 Oct 2006 05:45:14 +0000 (01:45 -0400)
commit4dfbb9d8c6cbfc32faa5c71145bd2a43e1f8237c
treea4fefea0d5f5930240f4ecd6f9716a029cc927a9
parent86255d9d0bede79140f4912482447963f00818c0
Lockdep: add lockdep_set_class_and_subclass() and lockdep_set_subclass()

This annotation makes it possible to assign a subclass on lock init. This
annotation is meant to reduce the _nested() annotations by assigning a
default subclass.

One could do without this annotation and rely on lockdep_set_class()
exclusively, but that would require a manual stack of struct lock_class_key
objects.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/lockdep.h
kernel/lockdep.c
kernel/mutex-debug.c
lib/rwsem-spinlock.c
lib/rwsem.c
lib/spinlock_debug.c
net/core/sock.c