From 7b369d02df2628f2209688646806a56bef7ff099 Mon Sep 17 00:00:00 2001 From: Christian Loehle Date: Tue, 30 Sep 2025 11:04:21 +0100 Subject: [PATCH] scx_central: Handle migration disabled tasks The task in the qmap may be migration disabled, don't dispatch it to a local DSQ in that case but bounce it back to the fallback, too. Signed-off-by: Christian Loehle --- scheds/c/scx_central.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheds/c/scx_central.bpf.c b/scheds/c/scx_central.bpf.c index 55df8b7988..2b998cb9f8 100644 --- a/scheds/c/scx_central.bpf.c +++ b/scheds/c/scx_central.bpf.c @@ -151,7 +151,7 @@ static bool dispatch_to_cpu(s32 cpu) * If we can't run the task at the top, do the dumb thing and * bounce it to the fallback dsq. */ - if (!bpf_cpumask_test_cpu(cpu, p->cpus_ptr)) { + if (!bpf_cpumask_test_cpu(cpu, p->cpus_ptr) || is_migration_disabled(p)) { __sync_fetch_and_add(&nr_mismatches, 1); scx_bpf_dsq_insert(p, FALLBACK_DSQ_ID, SCX_SLICE_INF, 0); bpf_task_release(p);