summaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-12-16 12:23:31 -0800
committerPaul E. McKenney <paulmck@kernel.org>2022-02-01 17:24:38 -0800
commit2b4a7f20f160e6440848c62a70ee5dc5237a2c8b (patch)
tree1612f5540396d7a3eab13eac735138d61ae78311 /kernel/torture.c
parent6f81bd6a4e305d15d9c2a6a350e2876a7a814d7e (diff)
downloadlinux-stable-2b4a7f20f160e6440848c62a70ee5dc5237a2c8b.tar.gz
linux-stable-2b4a7f20f160e6440848c62a70ee5dc5237a2c8b.tar.bz2
linux-stable-2b4a7f20f160e6440848c62a70ee5dc5237a2c8b.zip
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>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r--kernel/torture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index ef27a6c82451..f55d803f995d 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -911,7 +911,7 @@ void torture_kthread_stopping(char *title)
{
char buf[128];
- snprintf(buf, sizeof(buf), "Stopping %s", title);
+ snprintf(buf, sizeof(buf), "%s is stopping", title);
VERBOSE_TOROUT_STRING(buf);
while (!kthread_should_stop()) {
torture_shutdown_absorb(title);