[PATCHSET sched_ext/for-6.11] sched_ext: Fix scx_bpf_reenqueue_local()

From: Tejun Heo
Date: Tue Jul 09 2024 - 17:10:18 EST


Fix scx_bpf_reenqueue_local()'s misbehaviors in two cases:

- when SCX_ENQ_HEAD is used to dispatch a re-enqueued task back to the same
local DSQ.

- when the CPU is being preempted by stop_task for task migration.

This patchset contains the following two patches:

0001-sched_ext-Reimplement-scx_bpf_reenqueue_local.patch
0002-sched_ext-Make-scx_bpf_reenqueue_local-skip-tasks-th.patch

and is also available in the following git branch:

git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git scx-fix-reenqueue_local

diffstat follows. Thanks.

kernel/sched/ext.c | 40 +++++++++++++++++++++++++++-------------
1 file changed, 27 insertions(+), 13 deletions(-)

--
tejun