LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH RESEND] LOCKDEP: minor fix for debug_show_all_locks()
@ 2008-10-28 9:29 qinghuang feng
0 siblings, 0 replies; only message in thread
From: qinghuang feng @ 2008-10-28 9:29 UTC (permalink / raw)
To: mingo, peterz; +Cc: linux-kernel
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>
---
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index dbda475..6533fd9 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -3417,8 +3417,7 @@ retry:
}
printk(" ignoring it.\n");
unlock = 0;
- }
- if (count != 10)
+ } else if (count != 10)
printk(" locked it.\n");
do_each_thread(g, p) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-28 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-28 9:29 [PATCH RESEND] LOCKDEP: minor fix for debug_show_all_locks() qinghuang feng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).