summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorqinghuang feng <qhfeng.kernel@gmail.com>2008-10-28 17:24:28 +0800
committerIngo Molnar <mingo@elte.hu>2008-10-28 10:30:04 +0100
commit46fec7ac40e452a2ea5e63648d98b6bb2b5898f9 (patch)
treeacde64c08983ff2421c33144c0ce1215218fde9f /kernel
parent03967c5267b0e7312d1d55dc814d94cf190ca573 (diff)
downloadlinux-46fec7ac40e452a2ea5e63648d98b6bb2b5898f9.tar.bz2
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.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) {
/*