mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrea Righi <arighi@nvidia.com>
To: Tejun Heo <tj@kernel.org>
Cc: sched-ext@lists.linux.dev, David Vernet <void@manifault.com>,
	Changwoo Min <changwoo@igalia.com>,
	Emil Tsalapatis <emil@etsalapatis.com>,
	David Dai <david.dai@linux.dev>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCHSET sched_ext/for-7.4-fixes] sched_ext: Fix ops.enqueue/dispatch() calls before ops.cpu_online()
Date: Mon, 2 Nov 2026 12:11:56 +0100	[thread overview]
Message-ID: <auhv_Jdir0wpi3fw@gpd4> (raw)
In-Reply-To: <20261031170541.710939-1-tj@kernel.org>

Hi Tejun,

On Sat, Oct 31, 2026 at 07:05:39AM -1000, Tejun Heo wrote:
> Hello,
> 
> This patchset fixes ops.enqueue/dispatch() calls for a cpu before the root's
> ops.cpu_online(). Both ops are gated on SCX_RQ_ONLINE, which follows the
> core's rq online state, and on a runtime cpu up the sched domain rebuild in
> sched_cpu_activate() puts the rq online before scx_rq_activate() calls
> ops.cpu_online().

Both patches look good to me, I haven't found any issues.

Reviewed-by: Andrea Righi <arighi@nvidia.com>

Thanks,
-Andrea

> 
> 0002 tracks the flag in handle_hotplug() instead, set right after
> ops.cpu_online() and cleared when the cpu goes down. 0001 is preparation.
> 
> Based on sched_ext/for-7.4-fixes (0aba89317f38).
> 
> This patchset contains the following 2 patches.
> 
>  0001 sched_ext: Factor out drain_offline_rq()
>  0002 sched_ext: Fix ops.enqueue/dispatch() calls before ops.cpu_online()
> 
> The patchset is also available in the following git branch:
> 
>  git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git cpu-online-order
> 
> diffstat follows. Thanks.
> 
>  kernel/sched/ext/ext.c     | 93 ++++++++++++++++++++++++++--------------------
>  kernel/sched/ext/inlines.h |  2 +-
>  kernel/sched/ext/sub.c     |  9 +++--
>  kernel/sched/sched.h       | 17 +++++----
>  4 files changed, 68 insertions(+), 53 deletions(-)
> 
> --
> tejun

  parent reply	other threads:[~2026-11-02 11:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-31 17:05 Tejun Heo
2026-10-31 17:05 ` [PATCH 1/2] sched_ext: Factor out drain_offline_rq() Tejun Heo
2026-10-31 17:05 ` [PATCH 2/2] sched_ext: Fix ops.enqueue/dispatch() calls before ops.cpu_online() Tejun Heo
2026-11-02 11:11 ` Andrea Righi [this message]
2026-11-02 16:04 ` [PATCHSET sched_ext/for-7.4-fixes] " Tejun Heo

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=auhv_Jdir0wpi3fw@gpd4 \
    --to=arighi@nvidia.com \
    --cc=changwoo@igalia.com \
    --cc=david.dai@linux.dev \
    --cc=emil@etsalapatis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sched-ext@lists.linux.dev \
    --cc=tj@kernel.org \
    --cc=void@manifault.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®