Re: [1/1] powerpc: get_wchan(): solve possible race scenario due to parallel wakeup

From: Michael Ellerman
Date: Sun Oct 08 2017 - 04:43:38 EST


On Tue, 2016-04-19 at 10:18:21 UTC, Kautuk Consul wrote:
> Add a check for p->state == TASK_RUNNING so that any wake-ups on
> task_struct p in the interim lead to 0 being returned by get_wchan().
>
> Signed-off-by: Kautuk Consul <kautuk.consul.1980@xxxxxxxxx>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/4ca360f3dbf2036d964cdf3a6c4a45

cheers