From: Tejun Heo Date: Fri, 10 Apr 2026 20:19:22 +0000 (-1000) Subject: sched_ext: Drop spurious warning on kick during scheduler disable X-Git-Tag: v7.1-rc1~162^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49d78adf9555bbc02ccb65a28325e3e57e9c52ed;p=thirdparty%2Flinux.git sched_ext: Drop spurious warning on kick during scheduler disable kick_cpus_irq_workfn() warns when scx_kick_syncs is NULL, but this can legitimately happen when a BPF timer or other kick source races with free_kick_syncs() during scheduler disable. Drop the pr_warn_once() and add a comment explaining the race. Signed-off-by: Tejun Heo Reviewed-by: Zhao Mengmeng --- diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c index b8dbae251fd58..012ca8bd70fbd 100644 --- a/kernel/sched/ext.c +++ b/kernel/sched/ext.c @@ -7600,10 +7600,9 @@ static void kick_cpus_irq_workfn(struct irq_work *irq_work) unsigned long *ksyncs; s32 cpu; - if (unlikely(!ksyncs_pcpu)) { - pr_warn_once("kick_cpus_irq_workfn() called with NULL scx_kick_syncs"); + /* can race with free_kick_syncs() during scheduler disable */ + if (unlikely(!ksyncs_pcpu)) return; - } ksyncs = rcu_dereference_bh(ksyncs_pcpu)->syncs;