Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74648
b: refs/heads/master
c: 8568487
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Dec 5, 2007
1 parent 8c80d50 commit f3d6911
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41a2d6cfa3f77ec469e7e5f06b4d7ffd031f9c0e
refs/heads/master: 856848737bd944c1db3ce0a66bbf67e56bd6f77d
7 changes: 7 additions & 0 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,13 @@ void debug_show_all_locks(void)
printk(" locked it.\n");

do_each_thread(g, p) {
/*
* It's not reliable to print a task's held locks
* if it's not sleeping (or if it's not the current
* task):
*/
if (p->state == TASK_RUNNING && p != current)
continue;
if (p->lockdep_depth)
lockdep_print_held_locks(p);
if (!unlock)
Expand Down

0 comments on commit f3d6911

Please sign in to comment.