Kautuk Consul 4ca360f3db 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: Kautuk Consul <kautuk.consul.1980@gmail.com>
[mpe: Confirmed other architectures do similar]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-10-06 20:51:52 +11:00
..
2016-06-14 13:58:26 +10:00
2017-08-10 23:32:18 +10:00
2017-06-28 06:54:33 -07:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-06-27 17:02:50 -07:00
2017-09-08 18:26:48 -07:00
2017-06-27 12:09:09 +10:00