From: Tejun Heo <tj@kernel.org>
To: Kuba Piecuch <jpiecuch@google.com>,
Peter Zijlstra <peterz@infradead.org>
Cc: David Vernet <void@manifault.com>,
Andrea Righi <arighi@nvidia.com>,
Changwoo Min <changwoo@igalia.com>,
sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] sched_ext: Reenqueue IMMED tasks when a higher class wins the pick
Date: Fri, 27 Nov 2026 05:10:33 -1000 [thread overview]
Message-ID: <df1075443b0ae279117917df4bf50425@kernel.org> (raw)
In-Reply-To: <20261125114932.3198836-2-jpiecuch@google.com>
Hello, Kuba.
On Wed, Nov 25, 2026 at 11:50:52AM +0000, Kuba Piecuch wrote:
> Rather than chasing every path which can make a higher class task
> runnable, check once the pick is final, whether or not proxy execution is
> enabled. Add scx_settle_pick(), called by __schedule() after proxy
> resolution, on the path which every pick reaches.
Yeah, wakeup_preempt() misses the transitions which aren't wakeups. This
looks correct to me, although it also looks like it can replace most of
what wakeup_preempt() covers.
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -7340,6 +7340,7 @@ static void __sched notrace __schedule(int sched_mode)
> clear_tsk_need_resched(prev);
> clear_preempt_need_resched();
> keep_resched:
> + scx_settle_pick(rq);
Peter, what do you think?
Thanks.
--
tejun
next prev parent reply other threads:[~2026-11-27 15:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:50 [RFC PATCHSET sched_ext/for-7.4-fixes] " Kuba Piecuch
2026-11-25 11:50 ` [RFC PATCH 1/2] " Kuba Piecuch
2026-11-27 15:10 ` Tejun Heo [this message]
2026-11-25 11:50 ` [RFC PATCH 2/2] selftests/sched_ext: Add immed_strand test Kuba Piecuch
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=df1075443b0ae279117917df4bf50425@kernel.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=jpiecuch@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=sched-ext@lists.linux.dev \
--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®