Re: [PATCH] sched: Consider task_struct::saved_state in wait_task_inactive().

From: Sebastian Andrzej Siewior
Date: Fri May 26 2023 - 04:47:59 EST


On 2023-05-25 18:52:44 [+0200], Peter Zijlstra wrote:
> Urgh...
>
> I've ended up with the below.. I've tried folding it with
> ttwu_state_match() but every attempt so far makes it an unholy mess.
>
> Now, if only we had proper lock guard then we could drop another few
> lines, but alas.

perfect, thank you.
Tested the bits.

Sebastian