Re: [PATCH sched_ext/for-7.4-fixes 2/2] sched_ext: Start ext_server on every enqueue

From: Tejun Heo

Date: Wed Nov 25 2026 - 03:56:18 EST


Hello, Hang.

On Mon, Nov 23, 2026 at 02:04:55AM +0800, Hang Zhengyang via B4 Relay wrote:
> This doesn't cover a task that another CPU dispatches to this CPU's
> local DSQ.

This is a known problem and I'm afraid starting ext_server on every
enqueue isn't enough to address it. Which rq a task is enqueued on doesn't
tell which CPU is going to run it, so ext_server can still stay stopped
with tasks waiting for the CPU and no enqueue to start it again. The case
above is one example. With scx_central and a SCHED_FIFO task spinning on a
CPU, a SCHED_EXT task pinned to the same CPU still stalls for over ten
seconds with this patch applied.

I think this needs a different approach. I'll post something for it.

Thanks.

--
tejun