diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-10-27 15:48:34 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-10-30 19:07:18 +0300 |
commit | 1a39340865ce505a029b37aeb47a3e4c8db5f6c6 (patch) | |
tree | 54c08eab491b2b6ded61b910db833389ff6a4679 /kernel/futex.c | |
parent | d48e3850030623e1c20785bceaaf78f916d0b1a3 (diff) | |
download | linux-1a39340865ce505a029b37aeb47a3e4c8db5f6c6.tar.xz |
lockdep: Fix nr_unused_locks accounting
Chris reported that commit 24d5a3bffef1 ("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: 24d5a3bffef1 ("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.net
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions