Skip to content
Commit 4ca360f3 authored by Kautuk Consul's avatar Kautuk Consul Committed by Michael Ellerman
Browse files

powerpc: get_wchan(): solve possible race scenario due to parallel wakeup



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: default avatarKautuk Consul <kautuk.consul.1980@gmail.com>
[mpe: Confirmed other architectures do similar]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 06755a87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment