summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqinghuang feng <qhfeng.kernel@gmail.com>2008-10-28 10:24:28 +0100
committerIngo Molnar <mingo@elte.hu>2008-10-28 10:30:04 +0100
commit46fec7ac40e452a2ea5e63648d98b6bb2b5898f9 (patch)
treeacde64c08983ff2421c33144c0ce1215218fde9f
parentx86: restore the old swiotlb alloc_coherent behavior (diff)
downloadlinux-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>
-rw-r--r--kernel/lockdep.c5
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) {
/*