mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zqiang <qiang.zhang@linux.dev>
To: paulmck@kernel.org, frederic@kernel.org,
	neeraj.upadhyay@kernel.org, joelagnelf@nvidia.com,
	urezki@gmail.com, boqun@kernel.org
Cc: qiang.zhang@linux.dev, rcu@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] rcutorture: Remove redundant shutdown-absorb loop in rcu_torture_boost()
Date: Wed,  2 Dec 2026 17:21:07 +0800	[thread overview]
Message-ID: <20261202092107.18574-1-qiang.zhang@linux.dev> (raw)

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


                 reply	other threads:[~2026-12-02  9:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202092107.18574-1-qiang.zhang@linux.dev \
    --to=qiang.zhang@linux.dev \
    --cc=boqun@kernel.org \
    --cc=frederic@kernel.org \
    --cc=joelagnelf@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neeraj.upadhyay@kernel.org \
    --cc=paulmck@kernel.org \
    --cc=rcu@vger.kernel.org \
    --cc=urezki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®