locking/lockdep: Do not record IRQ state within lockdep code
authorSteven Rostedt (VMware) <[email protected]>
Wed, 4 Apr 2018 18:06:30 +0000 (14:06 -0400)
committerIngo Molnar <[email protected]>
Thu, 21 Jun 2018 16:19:01 +0000 (18:19 +0200)
commitfcc784be837714a9173b372ff9fb9b514590dad9
tree1cb921870108e16f23840f6a43ec658a74a4b536
parent03eeafdd9ab06a770d42c2b264d50dff7e2f4eee
locking/lockdep: Do not record IRQ state within lockdep code

While debugging where things were going wrong with mapping
enabling/disabling interrupts with the lockdep state and actual real
enabling and disabling interrupts, I had to silent the IRQ
disabling/enabling in debug_check_no_locks_freed() because it was
always showing up as it was called before the splat was.

Use raw_local_irq_save/restore() for not only debug_check_no_locks_freed()
but for all internal lockdep functions, as they hide useful information
about where interrupts were used incorrectly last.

Signed-off-by: Steven Rostedt (VMware) <[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/lkml/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/locking/lockdep.c