diff options
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index ed38bbfc48a3..7e2ca7c9d99c 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -3173,6 +3173,13 @@ retry: | |||
3173 | printk(" locked it.\n"); | 3173 | printk(" locked it.\n"); |
3174 | 3174 | ||
3175 | do_each_thread(g, p) { | 3175 | do_each_thread(g, p) { |
3176 | /* | ||
3177 | * It's not reliable to print a task's held locks | ||
3178 | * if it's not sleeping (or if it's not the current | ||
3179 | * task): | ||
3180 | */ | ||
3181 | if (p->state == TASK_RUNNING && p != current) | ||
3182 | continue; | ||
3176 | if (p->lockdep_depth) | 3183 | if (p->lockdep_depth) |
3177 | lockdep_print_held_locks(p); | 3184 | lockdep_print_held_locks(p); |
3178 | if (!unlock) | 3185 | if (!unlock) |