Skip to content

Commit 2b4a7f2

Browse files
committed
torture: Distinguish kthread stopping and being asked to stop
Right now, if a given kthread (call it "kthread") realizes that it needs to stop, "Stopping kthread" is written to the console. When the cleanup code decides that it is time to stop that kthread, "Stopping kthread tasks" is written to the console. These two events might happen in either order, especially in the case of time-based torture-test shutdown. But it is hard to distinguish these, especially for those unfamiliar with the torture tests. This commit therefore changes the first case from "Stopping kthread" to "kthread is stopping" to make things more clear. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 6f81bd6 commit 2b4a7f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/torture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ void torture_kthread_stopping(char *title)
911911
{
912912
char buf[128];
913913

914-
snprintf(buf, sizeof(buf), "Stopping %s", title);
914+
snprintf(buf, sizeof(buf), "%s is stopping", title);
915915
VERBOSE_TOROUT_STRING(buf);
916916
while (!kthread_should_stop()) {
917917
torture_shutdown_absorb(title);

0 commit comments

Comments
 (0)