Skip to content

Commit

Permalink
lockdep: minor fix for debug_show_all_locks()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
qinghuang feng authored and Ingo Molnar committed Oct 28, 2008
1 parent 03967c5 commit 46fec7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3417,9 +3417,10 @@ void debug_show_all_locks(void)
}
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) {
/*
Expand Down

0 comments on commit 46fec7a

Please sign in to comment.