提交 0d6821d5 编写于 作者: P Paul E. McKenney

torture: Include "Stopping" string to torture_kthread_stopping()

Currently, torture_kthread_stopping() prints only the name of the
kthread that is stopping, which can be unedifying.  This commit therefore
adds "Stopping" to make things more evident.
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 589a8f59
...@@ -674,8 +674,10 @@ EXPORT_SYMBOL_GPL(torture_must_stop_irq); ...@@ -674,8 +674,10 @@ EXPORT_SYMBOL_GPL(torture_must_stop_irq);
*/ */
void torture_kthread_stopping(char *title) void torture_kthread_stopping(char *title)
{ {
if (verbose) char buf[128];
VERBOSE_TOROUT_STRING(title);
snprintf(buf, sizeof(buf), "Stopping %s", title);
VERBOSE_TOROUT_STRING(buf);
while (!kthread_should_stop()) { while (!kthread_should_stop()) {
torture_shutdown_absorb(title); torture_shutdown_absorb(title);
schedule_timeout_uninterruptible(1); schedule_timeout_uninterruptible(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册