Re: [PATCH v34 04/14] sched/proxy: Wake blocked RT and deadline tasks through the full path

From: K Prateek Nayak

Date: Wed Dec 02 2026 - 00:37:59 EST


Hello John,

On 12/2/2026 9:22 AM, John Stultz wrote:
> From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
>
> With proxy execution, a task blocked on a mutex stays on its runqueue.
> The RT and deadline classes do not put such a task on their pushable
> lists. enqueue_task_rt() and put_prev_task_rt() skip a blocked task.
> enqueue_task_dl() and put_prev_task_dl() do the same. find_proxy_task()
> migrates it instead.
>
> Commit 7918cf369361 ("sched/proxy: Only return migrate when needed")
> wakes a blocked task in place when it is still on its original CPU.
> That wake-up does no enqueue. It also skips select_task_rq() and the
> task_woken() method of the class. So the woken task is runnable, but it
> is not pushable, and no other CPU can pull it.
>
> A SCHED_FIFO task woken this way waits behind a higher priority task
> while another CPU is idle. In a test on two CPUs, it ran 500ms after
> the mutex was released, when the higher priority task stopped. Without
> proxy execution it ran at once on the idle CPU. The test uses
> SCHED_FIFO. The deadline class has the same code path.
>
> Fix this in proxy_needs_return(). An RT or deadline task takes the full
> wake-up path, as a task that was proxy-migrated does. The other classes
> keep the in-place wake-up.
>
> Fixes: 7918cf369361 ("sched/proxy: Only return migrate when needed")
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
> [jstultz: Simplified the conditional check a touch]
> Signed-off-by: John Stultz <jstultz@xxxxxxxxxx>

Feel free to include:

Reviewed-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>

--
Thanks and Regards,
Prateek