diff options
author | qinghuang feng <qhfeng.kernel@gmail.com> | 2008-10-28 05:24:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 05:30:04 -0400 |
commit | 46fec7ac40e452a2ea5e63648d98b6bb2b5898f9 (patch) | |
tree | acde64c08983ff2421c33144c0ce1215218fde9f | |
parent | 03967c5267b0e7312d1d55dc814d94cf190ca573 (diff) |
lockdep: minor fix for debug_show_all_locks()
When we failed to get tasklist_lock eventually (count equals 0),
we should only print " ignoring it.\n", and not print
" locked it.\n" needlessly.
Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/lockdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index dbda475b13bd..11832acdde77 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -3417,9 +3417,10 @@ retry: | |||
3417 | } | 3417 | } |
3418 | printk(" ignoring it.\n"); | 3418 | printk(" ignoring it.\n"); |
3419 | unlock = 0; | 3419 | unlock = 0; |
3420 | } else { | ||
3421 | if (count != 10) | ||
3422 | printk(KERN_CONT " locked it.\n"); | ||
3420 | } | 3423 | } |
3421 | if (count != 10) | ||
3422 | printk(" locked it.\n"); | ||
3423 | 3424 | ||
3424 | do_each_thread(g, p) { | 3425 | do_each_thread(g, p) { |
3425 | /* | 3426 | /* |