diff options
author | qinghuang feng <qhfeng.kernel@gmail.com> | 2008-10-28 10:24:28 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 10:30:04 +0100 |
commit | 46fec7ac40e452a2ea5e63648d98b6bb2b5898f9 (patch) | |
tree | acde64c08983ff2421c33144c0ce1215218fde9f /kernel | |
parent | x86: restore the old swiotlb alloc_coherent behavior (diff) | |
download | linux-46fec7ac40e452a2ea5e63648d98b6bb2b5898f9.tar.xz linux-46fec7ac40e452a2ea5e63648d98b6bb2b5898f9.zip |
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>
Diffstat (limited to 'kernel')
-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: } printk(" ignoring it.\n"); unlock = 0; + } else { + if (count != 10) + printk(KERN_CONT " locked it.\n"); } - if (count != 10) - printk(" locked it.\n"); do_each_thread(g, p) { /* |