Commit 97e13ec
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>1 parent 71d0788 commit 97e13ec
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6621 | 6621 | | |
6622 | 6622 | | |
6623 | 6623 | | |
| 6624 | + | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
6624 | 6628 | | |
6625 | | - | |
| 6629 | + | |
6626 | 6630 | | |
6627 | 6631 | | |
6628 | 6632 | | |
| |||
0 commit comments