lockdep: Fix wait-type for empty stack
[ Upstream commitf8b298cc39] 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) <peterz@infradead.org> Tested-by: Joerg Roedel <jroedel@suse.de> Link: https://lore.kernel.org/r/20210617190313.256987481@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ca47a4fa89
commit
fca9e784a3
1 changed files with 1 additions and 1 deletions
|
|
@ -4626,7 +4626,7 @@ static int check_wait_context(struct task_struct *curr, struct held_lock *next)
|
|||
short curr_inner;
|
||||
int depth;
|
||||
|
||||
if (!curr->lockdep_depth || !next_inner || next->trylock)
|
||||
if (!next_inner || next->trylock)
|
||||
return 0;
|
||||
|
||||
if (!next_outer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue