diff options
author | Waiman Long <[email protected]> | 2019-01-09 23:03:25 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-02-04 09:03:27 +0100 |
commit | 513e1073d52e55b8024b4f238a48de7587c64ccf (patch) | |
tree | c5efae642230bed217027ef657b6577cb18a1b16 /include/linux/compiler_attributes.h | |
parent | 31fe3cbbf26772ad83d2800dcb001f3dae92692e (diff) |
locking/lockdep: Add debug_locks check in __lock_downgrade()
Tetsuo Handa had reported he saw an incorrect "downgrading a read lock"
warning right after a previous lockdep warning. It is likely that the
previous warning turned off lock debugging causing the lockdep to have
inconsistency states leading to the lock downgrade warning.
Fix that by add a check for debug_locks at the beginning of
__lock_downgrade().
Reported-by: Tetsuo Handa <[email protected]>
Reported-by: [email protected]
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions