Re: [PATCH 2/6] sched/proxy: Optimize try_to_wake_up()

From: John Stultz

Date: Tue May 26 2026 - 21:56:38 EST


On Tue, May 26, 2026 at 4:16 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> The reason for the clause in try_to_wake_up() is, per its comment, that
> find_proxy_task()'s proxy_deactivate() is not always called with a cleared
> p->blocked_on.
>
> However, that seems silly and easily cured. Make sure to always call
> proxy_deactivate() with a cleared p->blocked_on such that we might remove this
> clause from the common wake-up path.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

Acked-by: John Stultz <jstultz@xxxxxxxxxx>