public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Valentin Schneider <valentin.schneider@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Daniel Bristot de Oliveira <bristot@redhat.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Joel Fernandes <joel@joelfernandes.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Qais Yousef <qais.yousef@arm.com>
Subject: Re: [PATCH 6/7 v3] sched/fair: trigger the update of blocked load on newly idle cpu
Date: Wed, 17 Feb 2021 11:51:02 +0000	[thread overview]
Message-ID: <jhjmtw2syjd.mognet@arm.com> (raw)
In-Reply-To: <CAKfTPtDpTEUdRcgJ3dwvD6Fz3D02E46xNtv9BpfFmkjCV1shyA@mail.gmail.com>

On 15/02/21 16:02, Vincent Guittot wrote:
> On Fri, 12 Feb 2021 at 20:19, Valentin Schneider
> <valentin.schneider@arm.com> wrote:
>> I don't think there is anything inherently wrong with it - the
>> nohz_idle_balance() call resulting from the kick_ilb() IPI will just bail
>> out due to the flags being cleared here. This wasn't immediately clear to
>> me however.
>
> In fact, I forgot to replace the WARN_ON in nohz_csd_func() by a
> simple return as reported by kernel test robot / oliver.sang@intel.com
>

Can't that actually be a problem? kick_ilb() says:

         * Access to rq::nohz_csd is serialized by NOHZ_KICK_MASK; he who sets
         * the first flag owns it; cleared by nohz_csd_func().

So if you have:

  kick_ilb() -> kicks CPU42

And then said CPU42 goes through, before nohz_csd_func(),:

  do_idle() -> nohz_run_idle_balance()

you could have yet another CPU do:

  kick_ilb() -> kicks CPU42

which would break rq->nohz_csd serialization.

>>
>> > +}
>> > +

  reply	other threads:[~2021-02-17 11:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12 14:17 [PATCH 0/7 v3] move update blocked load outside newidle_balance Vincent Guittot
2021-02-12 14:17 ` [PATCH 1/7 v3] sched/fair: remove update of blocked load from newidle_balance Vincent Guittot
2021-02-12 14:17 ` [PATCH 2/7 v3] sched/fair: remove unused return of _nohz_idle_balance Vincent Guittot
2021-02-12 14:17 ` [PATCH 3/7 v3] sched/fair: remove unused parameter of update_nohz_stats Vincent Guittot
2021-02-12 14:17 ` [PATCH 4/7 v3] sched/fair: merge for each idle cpu loop of ILB Vincent Guittot
2021-02-12 14:17 ` [PATCH 5/7 v3] sched/fair: reorder newidle_balance pulled_task tests Vincent Guittot
2021-02-12 14:17 ` [PATCH 6/7 v3] sched/fair: trigger the update of blocked load on newly idle cpu Vincent Guittot
2021-02-12 19:19   ` Valentin Schneider
2021-02-15 15:02     ` Vincent Guittot
2021-02-17 11:51       ` Valentin Schneider [this message]
2021-02-17 15:34         ` Vincent Guittot
2021-02-12 14:17 ` [PATCH 7/7 v3] sched/fair: reduce the window for duplicated update Vincent Guittot
2021-02-12 19:19   ` Valentin Schneider

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=jhjmtw2syjd.mognet@arm.com \
    --to=valentin.schneider@arm.com \
    --cc=bristot@redhat.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=fweisbec@gmail.com \
    --cc=joel@joelfernandes.org \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=qais.yousef@arm.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=vincent.guittot@linaro.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