lockdep: lockdep_set_notrack_class()
Add a new helper to disable lockdep tracking entirely for a given class.
This is needed for bcachefs, which takes too many btree node locks for
lockdep to track. Instead, we have a single lockdep_map for "btree_trans
has any btree nodes locked", which makes more since given that we have
centralized lock management and a cycle detector.
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will@kernel.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by:
Kent Overstreet <kent.overstreet@linux.dev>
Showing
- fs/bcachefs/btree_locking.c 1 addition, 1 deletionfs/bcachefs/btree_locking.c
- include/linux/lockdep.h 4 additions, 0 deletionsinclude/linux/lockdep.h
- include/linux/lockdep_types.h 1 addition, 0 deletionsinclude/linux/lockdep_types.h
- kernel/locking/lockdep.c 8 additions, 1 deletionkernel/locking/lockdep.c
Please register or sign in to comment