Re: [RFC PATCH 1/2] sched_ext: Reenqueue IMMED tasks when a higher class wins the pick

From: Tejun Heo

Date: Fri Nov 27 2026 - 10:10:39 EST


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