]> www.infradead.org Git - nvme.git/commit
lockdep: lockdep_set_notrack_class()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 22 Dec 2023 01:34:17 +0000 (20:34 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:16 +0000 (19:00 -0400)
commit1a616c2fe96b357894b74b41787d4ea6987f6199
treef14fa2ca62aa960c73794f45945b44c73cfc8f63
parent8f523d425e0255a68d2f47f9b21db4f684c185c9
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>
fs/bcachefs/btree_locking.c
include/linux/lockdep.h
include/linux/lockdep_types.h
kernel/locking/lockdep.c