Re: [PATCH 3/6] sched: Be more strict about p->is_blocked
From: John Stultz
Date: Tue May 26 2026 - 21:57:12 EST
On Tue, May 26, 2026 at 4:16 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Upon entry to try_to_block_task(), p->is_blocked should be false. After all,
> the prior wakeup would have made it so per ttwu_do_wakeup().
>
> Ensure this is the case, rather than clearing it in the path that doesn't set
> it.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Acked-by: John Stultz <jstultz@xxxxxxxxxx>