Repository navigation
Commit 0f736a5
locking/lockdep: Use for_each_process_thread() for debug_show_all_locks()
debug_show_all_locks() tries to grab the tasklist_lock for two seconds, but
calling while_each_thread() without tasklist_lock held is not safe.
See the following commit for more information:
4449a51 ("vm_is_stack: use for_each_thread() rather then buggy while_each_thread()")
Change debug_show_all_locks() from "do_each_thread()/while_each_thread()
with possibility of missing tasklist_lock" to "for_each_process_thread()
with RCU", and add a call to touch_all_softlockup_watchdogs() like
show_state_filter() does.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1523011279-8206-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent 12e2c41 commit 0f736a5
1 file changed
Lines changed: 8 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4451 | 4451 | | |
4452 | 4452 | | |
4453 | 4453 | | |
4454 | | - | |
4455 | | - | |
4456 | 4454 | | |
4457 | 4455 | | |
4458 | 4456 | | |
4459 | 4457 | | |
4460 | 4458 | | |
4461 | 4459 | | |
4462 | 4460 | | |
4463 | | - | |
4464 | | - | |
4465 | | - | |
4466 | | - | |
4467 | | - | |
4468 | | - | |
4469 | | - | |
4470 | | - | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
4475 | | - | |
4476 | | - | |
4477 | | - | |
4478 | | - | |
4479 | | - | |
4480 | | - | |
4481 | | - | |
4482 | | - | |
4483 | | - | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
| 4461 | + | |
| 4462 | + | |
4487 | 4463 | | |
4488 | 4464 | | |
4489 | 4465 | | |
4490 | 4466 | | |
4491 | 4467 | | |
4492 | 4468 | | |
4493 | 4469 | | |
4494 | | - | |
4495 | | - | |
4496 | | - | |
4497 | | - | |
4498 | | - | |
| 4470 | + | |
| 4471 | + | |
| 4472 | + | |
4499 | 4473 | | |
4500 | | - | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
4501 | 4477 | | |
4502 | 4478 | | |
4503 | 4479 | | |
4504 | | - | |
4505 | | - | |
4506 | | - | |
4507 | 4480 | | |
4508 | 4481 | | |
4509 | 4482 | | |
| |||
0 commit comments