Commit 1a39340
Peter Zijlstra
lockdep: Fix nr_unused_locks accounting
Chris reported that commit 24d5a3b ("lockdep: Fix
usage_traceoverflow") breaks the nr_unused_locks validation code
triggered by /proc/lockdep_stats.
By fully splitting LOCK_USED and LOCK_USED_READ it becomes a bad
indicator for accounting nr_unused_locks; simplyfy by using any first
bit.
Fixes: 24d5a3b ("lockdep: Fix usage_traceoverflow")
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://lkml.kernel.org/r/20201027124834.GL2628@hirez.programming.kicks-ass.net1 parent d48e385 commit 1a39340
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4396 | 4396 | | |
4397 | 4397 | | |
4398 | 4398 | | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
4399 | 4402 | | |
4400 | 4403 | | |
4401 | 4404 | | |
4402 | 4405 | | |
4403 | 4406 | | |
4404 | 4407 | | |
4405 | 4408 | | |
4406 | | - | |
4407 | | - | |
| 4409 | + | |
4408 | 4410 | | |
4409 | 4411 | | |
4410 | 4412 | | |
4411 | | - | |
4412 | | - | |
4413 | | - | |
4414 | | - | |
4415 | | - | |
4416 | | - | |
4417 | | - | |
4418 | | - | |
4419 | 4413 | | |
4420 | 4414 | | |
4421 | 4415 | | |
| |||
0 commit comments