mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
lockdep: Fix wait-type for empty stack
Even the very first lock can violate the wait-context check, consider
the various IRQ contexts.
Fixes: de8f5e4f2d ("lockdep: Introduce wait-type checks")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Joerg Roedel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
1 parent
8946ccc25e
commit
f8b298cc39
1 file changed
+1
-1
@@ -4688,7 +4688,7 @@ static int check_wait_context(struct task_struct *curr, struct held_lock *next)
|
||||
u8 curr_inner;
|
||||
int depth;
|
||||
|
||||
if (!curr->lockdep_depth || !next_inner || next->trylock)
|
||||
if (!next_inner || next->trylock)
|
||||
return 0;
|
||||
|
||||
if (!next_outer)
|
||||
|
||||
Reference in new issue
Block a user