(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

sched_ext: scx_qmap: Also re-enqueue stranded tasks with scx_bpf_dsq_reenq_task()

scan_shared_dsq() rescues a task stranded on SHARED_DSQ or HIGHPRI_DSQ by moving it to the rescue path with scx_bpf_dsq_move(). For a task with an odd pid, mark it with scx_bpf_dsq_reenq_task() instead, which sends it back through qmap_enqueue() and its rescue, so that both kfuncs are exercised. scan_shared_dsq() runs from qmap_dispatch() and from the monitor timer, so the kfunc can be called both with the dispatch rq locked and with no rq lock held. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>


Author Tejun Heo Date Commit Parent b3768d05
+31 -19
1 changed file
+31 -19
1 changed file