Commit 1a616c2
Kent Overstreet
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>1 parent 8f523d4 commit 1a616c2
4 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| 344 | + | |
341 | 345 | | |
342 | 346 | | |
343 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4918 | 4918 | | |
4919 | 4919 | | |
4920 | 4920 | | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
4921 | 4924 | | |
4922 | 4925 | | |
4923 | 4926 | | |
| |||
5002 | 5005 | | |
5003 | 5006 | | |
5004 | 5007 | | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
5005 | 5011 | | |
5006 | 5012 | | |
5007 | 5013 | | |
| |||
5764 | 5770 | | |
5765 | 5771 | | |
5766 | 5772 | | |
5767 | | - | |
| 5773 | + | |
| 5774 | + | |
5768 | 5775 | | |
5769 | 5776 | | |
5770 | 5777 | | |
| |||
0 commit comments