mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joel Fernandes <joel@joelfernandes.org>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: "Paul E. McKenney" <paulmck@kernel.org>,
	Z qiang <qiang.zhang1211@gmail.com>,
	linux-kernel@vger.kernel.org, rcu@vger.kernel.org
Subject: Re: [PATCH] rcutorture: Traverse possible cpu to set maxcpu in rcu_nocb_toggle()
Date: Tue, 29 Aug 2023 06:12:35 -0400	[thread overview]
Message-ID: <D98FE55B-C379-4C24-B4DD-4E02A1E2AB79@joelfernandes.org> (raw)
In-Reply-To: <ZO25SDat3cd6opQ7@lothringen>



> On Aug 29, 2023, at 5:24 AM, Frederic Weisbecker <frederic@kernel.org> wrote:
> 
> On Mon, Aug 28, 2023 at 05:51:09PM -0400, Joel Fernandes wrote:
>> I think the issue is the loop later in the function does
>> not try to toggle cpus that came online too late.
>> 
>> So it does not test offloading on all CPUs just because max got updated too
>> late.
> 
> Right, and therefore for_each_possible_cpu() or for_each_present_cpu()
> should be fine to iterate since it's ok to try to toggle an offline CPU.

Ah I see what you mean, sounds good.

> 
>> 
>> One fix could be to periodically check in the loop if a new cpu at maxcpu + 1
>> ever got onlined. If it did, update the maxcpu.
> 
> Is it worth the complication though?

Probably not and so your suggestion sounds fine.

Thanks!

 - Joel


> 
> Thanks.
> 
>> 
>> Thanks.
>> 
>> 
>>> 
>>> Thanks.

  reply	other threads:[~2023-08-29 10:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24  8:42 Zqiang
2023-08-24  8:59 ` Z qiang
2023-08-24 13:21 ` Paul E. McKenney
2023-08-25  2:28   ` Z qiang
2023-08-26  1:29     ` Paul E. McKenney
2023-08-26  6:13       ` Z qiang
2023-08-26 13:06         ` Paul E. McKenney
2023-08-28 15:17           ` Frederic Weisbecker
2023-08-28 21:51             ` Joel Fernandes
2023-08-29  9:24               ` Frederic Weisbecker
2023-08-29 10:12                 ` Joel Fernandes [this message]
2023-08-29 12:38                 ` Paul E. McKenney
2023-09-01 14:56                   ` Paul E. McKenney
  -- strict thread matches above, loose matches on Subject: below --
2023-08-24  8:41 Zqiang

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=D98FE55B-C379-4C24-B4DD-4E02A1E2AB79@joelfernandes.org \
    --to=joel@joelfernandes.org \
    --cc=frederic@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=qiang.zhang1211@gmail.com \
    --cc=rcu@vger.kernel.org \
    /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®