Re: [PATCH 06/13] sched_ext: Exit dispatch and move operations immediately when aborting
From: Tejun Heo
Date: Mon Nov 10 2025 - 14:05:49 EST
On Mon, Nov 10, 2025 at 09:20:15AM +0100, Andrea Righi wrote:
> > @@ -5635,6 +5609,13 @@ static bool scx_dsq_move(struct bpf_iter_scx_dsq_kern *kit,
> > !scx_kf_allowed(sch, SCX_KF_DISPATCH))
> > return false;
> >
> > + /*
> > + * If the BPF scheduler keeps calling this function repeatedly, it can
> > + * cause similar live-lock conditions as consume_dispatch_q().
> > + */
> > + if (unlikely(scx_aborting))
>
> READ_ONCE(scx_aborting)?
Updated.
Thanks.
--
tejun