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

Michael Ellerman patch-notifications at ellerman.id.au
Sun Oct 8 19:43:31 AEDT 2017


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 at gmail.com>

Applied to powerpc next, thanks.

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

cheers


More information about the Linuxppc-dev mailing list