All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcutorture: Remove redundant shutdown-absorb loop in rcu_torture_boost()
@ 2026-12-02  9:21 Zqiang
  0 siblings, 0 replies; only message in thread
From: Zqiang @ 2026-12-02  9:21 UTC (permalink / raw)
  To: paulmck, frederic, neeraj.upadhyay, joelagnelf, urezki, boqun
  Cc: qiang.zhang, rcu, linux-kernel

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@linux.dev>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  9:21 [PATCH] rcutorture: Remove redundant shutdown-absorb loop in rcu_torture_boost() Zqiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.