The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andrea Righi <arighi@nvidia.com>
To: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	John Stultz <jstultz@google.com>,
	David Vernet <void@manifault.com>,
	Changwoo Min <changwoo@igalia.com>, Tao Cui <cuitao@kylinos.cn>,
	sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] sched_ext: Make SCX_OPS_ENQ_BLOCKED a hierarchy-wide setting
Date: Sat, 28 Nov 2026 17:53:37 +0100	[thread overview]
Message-ID: <awsHEWzbu7h8Tysr@gpd4> (raw)
In-Reply-To: <awsDxUgf18EsXz9J@gpd4>

On Sat, Nov 28, 2026 at 05:39:33PM +0100, Andrea Righi wrote:
> Hi Tejun,
> 
> On Fri, Nov 27, 2026 at 10:29:43AM -1000, Tejun Heo wrote:
> > Hello, Andrea.
> > 
> > On Thu, Nov 26, 2026 at 12:13:58PM +0100, Andrea Righi wrote:
> > > Mixing proxy donor admission within a hierarchy has no real use, so
> > > don't allow it: a sub-scheduler must match the root scheduler's
> > > SCX_OPS_ENQ_BLOCKED setting or it fails to load.
> > 
> > Does the match need to go both ways? If the root sets SCX_OPS_ENQ_BLOCKED,
> > proxy execution is on and every sub-sched needs the flag too. However, when
> > the root doesn't set it, I don't see why a sub-sched which sets it can't be
> > loaded. Proxy execution can just stay disabled.
> 
> Right, a sub-sched setting SCX_OPS_ENQ_BLOCKED under a root that doesn't
> is safe, it would just never see SCX_ENQ_BLOCKED. My concern is that
> it'd be silent: a sub-sched that opts in and implements donor handling
> would load fine and that code would never run, with no indication why.
> 
> Maybe we can accept it and pr_warn() that the flag is ignored?

...and, just to be clear, by "accept it" I mean only the case of a
sub-sched setting SCX_OPS_ENQ_BLOCKED under a root that doesn't. A
sub-sched without the flag under a root that sets it would still fail to
load, otherwise it'd receive blocked donors it never opted into.

Thanks,
-Andrea

  reply	other threads:[~2026-11-28 16:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 11:13 [PATCHSET sched_ext/for-7.5] sched/proxy: Handle retained donors on scheduling class transitions Andrea Righi
2026-11-26 11:13 ` [PATCH 1/4] sched: Let switching_to() decide whether to keep a retained proxy donor Andrea Righi
2026-11-26 16:01   ` Peter Zijlstra
2026-11-28 16:42     ` Andrea Righi
2026-11-26 11:13 ` [PATCH 2/4] sched_ext: Make SCX_OPS_ENQ_BLOCKED a hierarchy-wide setting Andrea Righi
2026-11-27 20:29   ` Tejun Heo
2026-11-28 16:39     ` Andrea Righi
2026-11-28 16:53       ` Andrea Righi [this message]
2026-11-26 11:13 ` [PATCH 3/4] sched: Remove sched_proxy_block_task() Andrea Righi
2026-11-26 11:14 ` [PATCH 4/4] selftests/sched_ext: Check that blocked donors are never enqueued unadmitted Andrea Righi

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=awsHEWzbu7h8Tysr@gpd4 \
    --to=arighi@nvidia.com \
    --cc=bsegall@google.com \
    --cc=changwoo@igalia.com \
    --cc=cuitao@kylinos.cn \
    --cc=dietmar.eggemann@arm.com \
    --cc=jstultz@google.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sched-ext@lists.linux.dev \
    --cc=tj@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=void@manifault.com \
    --cc=vschneid@redhat.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