Skip to content

Commit

Permalink
torture: Include "Stopping" string to torture_kthread_stopping()
Browse files Browse the repository at this point in the history
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
paulmck committed May 14, 2014
1 parent 589a8f5 commit 0d6821d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/torture.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,10 @@ EXPORT_SYMBOL_GPL(torture_must_stop_irq);
*/
void torture_kthread_stopping(char *title)
{
if (verbose)
VERBOSE_TOROUT_STRING(title);
char buf[128];

snprintf(buf, sizeof(buf), "Stopping %s", title);
VERBOSE_TOROUT_STRING(buf);
while (!kthread_should_stop()) {
torture_shutdown_absorb(title);
schedule_timeout_uninterruptible(1);
Expand Down

0 comments on commit 0d6821d

Please sign in to comment.