提交 46fec7ac 编写于 作者: Q qinghuang feng 提交者: Ingo Molnar

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: NQinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 03967c52
......@@ -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) {
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册