Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d6821d5 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 589a8f59
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);