From: Joel Fernandes <joelagnelf@nvidia.com>
To: paulmck@kernel.org
Cc: linux-kernel@vger.kernel.org,
Frederic Weisbecker <frederic@kernel.org>,
Neeraj Upadhyay <neeraj.upadhyay@kernel.org>,
Joel Fernandes <joel@joelfernandes.org>,
Josh Triplett <josh@joshtriplett.org>,
Boqun Feng <boqun.feng@gmail.com>,
Uladzislau Rezki <urezki@gmail.com>,
Steven Rostedt <rostedt@goodmis.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Lai Jiangshan <jiangshanlai@gmail.com>,
Zqiang <qiang.zhang1211@gmail.com>,
Davidlohr Bueso <dave@stgolabs.net>,
rcu@vger.kernel.org
Subject: Re: [PATCH v3 1/2] rcutorture: Perform more frequent testing of ->gpwrap
Date: Mon, 14 Apr 2025 11:05:45 -0400 [thread overview]
Message-ID: <5ee46103-caef-46ac-8660-4b9f4bb5e4f0@nvidia.com> (raw)
In-Reply-To: <11caaa93-7acf-417c-9223-1b14a76310b2@paulmck-laptop>
On 4/10/2025 2:29 PM, Paul E. McKenney wrote:
>> +static int rcu_gpwrap_lag_init(void)
>> +{
>> + if (gpwrap_lag_cycle_mins <= 0 || gpwrap_lag_active_mins <= 0) {
>> + pr_alert("rcu-torture: lag timing parameters must be positive\n");
>> + return -EINVAL;
> When rcutorture is initiated by modprobe, this makes perfect sense.
>
> But if rcutorture is built in, we have other choices: (1) Disable gpwrap
> testing and do other testing but splat so that the bogus scripting can
> be fixed, (2) Force default values and splat as before, (3) Splat and
> halt the system.
>
> The usual approach has been #1, but what makes sense in this case?
If the user deliberately tries to prevent the test, I am Ok with #3 which I
believe is the current behavior. But otherwise #1 is also Ok with me but I don't
feel strongly about doing that.
If we want to do #3, it will just involve changing the "return -EINVAL" to
"return 0" but also may need to be doing so only if RCU torture is a built-in.
IMO the current behavior is reasonable than adding more complexity for an
unusual case for a built-in?
On the other hand if the issue is with providing the user with a way to disable
gpwrap testing, that should IMO be another parameter than setting the _mins
parameters to be 0. But I think we may not want this testing disabled since it
is already "self-disabled" for the first 25 miutes.
Thoughts?
Thanks!
- Joel
next prev parent reply other threads:[~2025-04-14 15:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250410150329.3807285-1-joelagnelf@nvidia.com>
2025-04-10 15:03 ` [PATCH v3 1/2] rcutorture: Perform more frequent testing of ->gpwrap Joel Fernandes
2025-04-10 18:29 ` Paul E. McKenney
2025-04-10 18:54 ` Paul E. McKenney
2025-04-11 1:47 ` Paul E. McKenney
2025-04-11 5:36 ` [v3,1/2] " Joel Fernandes
2025-04-11 19:18 ` Paul E. McKenney
2025-04-14 12:07 ` Joel Fernandes
2025-04-14 14:24 ` Paul E. McKenney
2025-04-14 14:56 ` Joel Fernandes
2025-04-14 16:17 ` Paul E. McKenney
2025-04-11 5:36 ` Joel Fernandes
2025-04-14 15:05 ` Joel Fernandes [this message]
2025-04-16 0:19 ` [PATCH v3 1/2] " Paul E. McKenney
2025-04-16 11:19 ` Joel Fernandes
2025-04-20 0:21 ` Paul E. McKenney
2025-04-20 2:40 ` [v3,1/2] rcutorture: Perform more frequent testing of ->gpwrap Joel Fernandes
2025-04-20 18:04 ` Paul E. McKenney
2025-04-10 15:03 ` [PATCH v3 2/2] rcutorture: Fix issue with re-using old images on ARM64 Joel Fernandes
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=5ee46103-caef-46ac-8660-4b9f4bb5e4f0@nvidia.com \
--to=joelagnelf@nvidia.com \
--cc=boqun.feng@gmail.com \
--cc=dave@stgolabs.net \
--cc=frederic@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=joel@joelfernandes.org \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=neeraj.upadhyay@kernel.org \
--cc=paulmck@kernel.org \
--cc=qiang.zhang1211@gmail.com \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.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