Re: [PATCH] sched_ext, rcu: Eject BPF scheduler on RCU CPU stall panic

From: Tejun Heo
Date: Tue Jun 24 2025 - 19:06:19 EST


On Tue, Jun 24, 2025 at 03:49:06PM -0700, David Dai wrote:
> 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@xxxxxxxxxx>
> Reviewed-by: Paul E. McKenney <paulmck@xxxxxxxxxx>
> Signed-off-by: David Dai <david.dai@xxxxxxxxx>

Applied to sched_ext/for-6.17.

Thanks.

--
tejun