[PATCH] rcutorture: Remove redundant shutdown-absorb loop in rcu_torture_boost()

From: Zqiang

Date: Wed Dec 02 2026 - 04:21:21 EST


The cleanup path of rcu_torture_boost() parks the kthread with an
open-coded kthread_should_stop()/torture_shutdown_absorb() wait loop
and then calls torture_kthread_stopping() whose body is that very
same loop, so the identical wait runs twice, this commit therefore
remove redundant open-coded.

Signed-off-by: Zqiang <qiang.zhang@xxxxxxxxx>
---
kernel/rcu/rcutorture.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index d329254de7d8..41b6083434ea 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1628,10 +1628,6 @@ checkwait: if (stutter_wait("rcu_torture_boost"))

cleanup:
/* Clean up and exit. */
- while (!kthread_should_stop()) {
- torture_shutdown_absorb("rcu_torture_boost");
- schedule_timeout_uninterruptible(HZ / 20);
- }
torture_kthread_stopping("rcu_torture_boost");
return 0;
}
--
2.17.1