Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <tj@kernel.org>
Reviewed-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>

+2 -3
+2 -3
kernel/sched/ext.c
··· 7600 7600 unsigned long *ksyncs; 7601 7601 s32 cpu; 7602 7602 7603 - if (unlikely(!ksyncs_pcpu)) { 7604 - pr_warn_once("kick_cpus_irq_workfn() called with NULL scx_kick_syncs"); 7603 + /* can race with free_kick_syncs() during scheduler disable */ 7604 + if (unlikely(!ksyncs_pcpu)) 7605 7605 return; 7606 - } 7607 7606 7608 7607 ksyncs = rcu_dereference_bh(ksyncs_pcpu)->syncs; 7609 7608