Re: [PATCH 1/2] sched_ext: Fix ops.dequeue() semantics

From: Andrea Righi

Date: Wed Jan 21 2026 - 08:10:34 EST


On Wed, Jan 21, 2026 at 12:54:42PM +0000, Christian Loehle wrote:
...
> > This allows BPF schedulers to:
> > - reliably track task ownership and lifecycle,
> > - maintain accurate accounting of enqueue/dequeue pairs,
> > - update internal state when tasks change properties.
> > [snip]
>
> Cool, so with this patch I should be able to fix my scx_storm BPF
> scheduler doing local inserts, as long as I track all the task's status
> that are not in a DSQ?
> https://github.com/cloehle/scx/commit/25ea91d8f7fea1f31cf426561b432180fb9cf76a
> mentioned in
> https://github.com/sched-ext/scx/issues/2825

In theory, yes...

>
> Let me give that a go and report back!

Let me know how it goes.

Thanks,
-Andrea