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>
Showing
- include/linux/lockdep.h 11 additions, 4 deletionsinclude/linux/lockdep.h
- kernel/lockdep.c 6 additions, 4 deletionskernel/lockdep.c
- kernel/mutex-debug.c 1 addition, 1 deletionkernel/mutex-debug.c
- lib/rwsem-spinlock.c 1 addition, 1 deletionlib/rwsem-spinlock.c
- lib/rwsem.c 1 addition, 1 deletionlib/rwsem.c
- lib/spinlock_debug.c 2 additions, 2 deletionslib/spinlock_debug.c
- net/core/sock.c 1 addition, 1 deletionnet/core/sock.c
Loading
Please register or sign in to comment