]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext, rcu: Eject BPF scheduler on RCU CPU stall panic
authorDavid Dai <david.dai@linux.dev>
Tue, 24 Jun 2025 22:49:06 +0000 (15:49 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 24 Jun 2025 23:05:26 +0000 (13:05 -1000)
commitcb444006a625c60e6d4dd3753863c3c74f96aac3
tree3c0f23267768d24423079005885a9670aae1fad5
parente2a37c277c64078d5439693963fb9813fa1e6e9c
sched_ext, rcu: Eject BPF scheduler on RCU CPU stall panic

For systems using a sched_ext scheduler and has panic_on_rcu_stall
enabled, try kicking out the current scheduler before issuing a panic.

While there are numerous reasons for RCU CPU stalls that are not
directly attributed to the scheduler, deferring the panic gives
sched_ext an opportunity to provide additional debug info when ejecting
the current scheduler. Also, handling the event more gracefully allows
us to potentially recover the system instead of incurring additional
down time.

Suggested-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: David Dai <david.dai@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/sched/ext.h
kernel/rcu/tree_stall.h
kernel/sched/ext.c