Re: [PATCH] sched_ext: Skip per-CPU tasks in scx_bpf_reenqueue_local()

From: Tejun Heo
Date: Thu Mar 13 2025 - 13:08:32 EST


On Thu, Mar 13, 2025 at 06:03:21PM +0100, Andrea Righi wrote:
> scx_bpf_reenqueue_local() can be invoked from ops.cpu_release() to give
> tasks that are queued to the local DSQ a chance to migrate to other
> CPUs, when a CPU is taken by a higher scheduling class.
>
> However, there is no point re-enqueuing tasks that can only run on that
> particular CPU, as they would simply be re-added to the same local DSQ
> without any benefit.
>
> Therefore, skip per-CPU tasks in scx_bpf_reenqueue_local().
>
> Signed-off-by: Andrea Righi <arighi@xxxxxxxxxx>

Applied to sched_ext/for-6.15.

Thanks.

--
tejun