From: sashiko-bot@kernel.org
To: "Andrea Righi" <arighi@nvidia.com>
Cc: sched-ext@lists.linux.dev
Subject: Re: [PATCH 11/15] sched_ext: Split curr|donor references properly
Date: Tue, 28 Jul 2026 16:25:17 +0000 [thread overview]
Message-ID: <20260728162518.594121F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260728154425.1549660-12-arighi@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Documentation incorrectly claims blocked donors bypass ops.running()/ops.stopping(), contradicting the implementation
--
--- Patch [11]: [PATCH 11/15] sched_ext: Split curr|donor references properly ---
commit 5cd9f3cfe50f459bfe5f1a7d7f7b8af97933ae95
Author: Andrea Righi <arighi@nvidia.com>
sched_ext: Split curr|donor references properly
This commit updates sched_ext to use rq->donor as the scheduling context
under proxy execution instead of rq->curr. It updates references in various
scheduler hooks and BPF kfuncs, and extends scx_dump_state() to report both
contexts.
> diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/scheduler/sched-ext.rst
> index ad2fff3c05937..db1ef89ed8f2a 100644
> --- a/Documentation/scheduler/sched-ext.rst
> +++ b/Documentation/scheduler/sched-ext.rst
> @@ -487,6 +487,12 @@ and edge cases, to name a few examples:
> class, in which case it will exit the tick-dispatch loop even though it is runnable
> and has a non-zero slice.
>
> +* Under proxy execution, sched_ext continues to observe the donor as the current
> + scheduling context. A blocked donor does not enter an ``ops.running()`` /
> + ``ops.stopping()`` session because it does not execute itself, and the lock
> + owner executing on its behalf is intentionally not reported through these
> + callbacks.
[Severity: Medium]
Is this documentation accurate regarding the implementation?
The documentation states that a blocked donor bypasses ops.running() and
ops.stopping(). However, the implementation invokes ops.running() via
scx_proxy_donor_start() when the proxy execution context is resolved, and
ops.stopping() is invoked via put_prev_task().
Could this contradiction mislead BPF scheduler authors into believing the
task lifecycle state machine is bypassed for blocked donors, when in fact
the running session is maintained?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260728154425.1549660-1-arighi@nvidia.com?part=11
next prev parent reply other threads:[~2026-07-28 16:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 15:43 [PATCHSET v10 sched_ext/for-7.3] sched: Make proxy execution compatible with sched_ext Andrea Righi
2026-07-28 15:43 ` [PATCH 01/15] sched/core: Avoid false migration warning for proxy donors Andrea Righi
2026-07-28 15:43 ` [PATCH 02/15] sched: Make NOHZ CFS bandwidth checks follow proxy donor Andrea Righi
2026-07-28 15:43 ` [PATCH 03/15] sched: Add helper to block retained proxy donors Andrea Righi
2026-07-28 15:43 ` [PATCH 04/15] sched: Skip class callbacks with SCHED_FLAG_KEEP_PARAMS Andrea Righi
2026-07-28 16:03 ` sashiko-bot
2026-07-28 15:43 ` [PATCH 05/15] sched: Add prepare_switch() class callback Andrea Righi
2026-07-28 15:43 ` [PATCH 06/15] sched: Add sched_ext hooks for proxy execution Andrea Righi
2026-07-28 15:43 ` [PATCH 07/15] sched_ext: Block proxy donors across scheduler transitions Andrea Righi
2026-07-28 15:43 ` [PATCH 08/15] sched_ext: Fix ops.running/stopping() pairing for proxy-exec donors Andrea Righi
2026-07-28 15:43 ` [PATCH 09/15] sched_ext: Generalize the reject DSQ reenqueue path Andrea Righi
2026-07-28 16:00 ` sashiko-bot
2026-07-28 15:43 ` [PATCH 10/15] sched_ext: Handle proxy-exec races in remote DSQ transfers Andrea Righi
2026-07-28 15:43 ` [PATCH 11/15] sched_ext: Split curr|donor references properly Andrea Righi
2026-07-28 16:25 ` sashiko-bot [this message]
2026-07-28 15:43 ` [PATCH 12/15] sched_ext: Delegate proxy donor admission to BPF schedulers Andrea Righi
2026-07-28 15:43 ` [PATCH 13/15] sched_ext: Add selftest for blocked donor admission Andrea Righi
2026-07-28 15:43 ` [PATCH 14/15] sched_ext: scx_qmap: Add proxy execution support Andrea Righi
2026-07-28 15:43 ` [PATCH 15/15] sched: Allow enabling proxy exec with sched_ext 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=20260728162518.594121F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=arighi@nvidia.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sched-ext@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.