diff options
author | Bart Van Assche <[email protected]> | 2019-04-15 10:05:38 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-04-16 08:21:51 +0200 |
commit | 8b39adbee805c539a461dbf208b125b096152b1c (patch) | |
tree | 1b3a4f8d2b60690a7c750c13d7016aff52880f74 /scripts/gdb/linux/timerlist.py | |
parent | 618d919cae2fcaadc752f27ddac8b939da8b441a (diff) |
locking/lockdep: Make lockdep_unregister_key() honor 'debug_locks' again
If lockdep_register_key() and lockdep_unregister_key() are called with
debug_locks == false then the following warning is reported:
WARNING: CPU: 2 PID: 15145 at kernel/locking/lockdep.c:4920 lockdep_unregister_key+0x1ad/0x240
That warning is reported because lockdep_unregister_key() ignores the
value of 'debug_locks' and because the behavior of lockdep_register_key()
depends on whether or not 'debug_locks' is set. Fix this inconsistency
by making lockdep_unregister_key() take 'debug_locks' again into
account.
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: shenghui <[email protected]>
Fixes: 90c1cba2b3b3 ("locking/lockdep: Zap lock classes even with lock debugging disabled")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions