From: qinghuang feng Date: Tue, 28 Oct 2008 09:24:28 +0000 (+0800) Subject: lockdep: minor fix for debug_show_all_locks() X-Git-Tag: v2.6.28-rc3~88^2~1 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=46fec7ac40e452a2ea5e63648d98b6bb2b5898f9;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ingo Molnar --- diff --git a/kernel/lockdep.c b/kernel/lockdep.c index dbda475b13b..11832acdde7 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) { /*