lockdep: change a held lock's class
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 4 Dec 2008 08:00:17 +0000 (09:00 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Dec 2008 09:08:18 +0000 (10:08 +0100)
commit00ef9f7348dfd2fc223ec42aceb30836e86b367f
tree14c33d878bec717179a6916232e118dbfbf7d65f
parentcb9c34e6d090d376b77becaa5d29a65dec7f4272
lockdep: change a held lock's class

Impact: introduce new lockdep API

Allow to change a held lock's class. Basically the same as the existing
code to change a subclass therefore reuse all that.

The XFS code will be able to use this to annotate their inode locking.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/lockdep.h
kernel/lockdep.c