sched_ext: Skip per-CPU tasks in scx_bpf_reenqueue_local()
authorAndrea Righi <arighi@nvidia.com>
Thu, 13 Mar 2025 17:03:21 +0000 (18:03 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 13 Mar 2025 17:07:27 +0000 (07:07 -1000)
commit97e13ecb026684dcd428910701662275175a2315
tree78b8a65eb6a2ee3b155bbd5a5209c3bd883554fe
parent71d078803ccbc020ae3b640293a40a86691b9151
sched_ext: Skip per-CPU tasks in scx_bpf_reenqueue_local()

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@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c