softlockup: fix task state setting
commit7be2a03e3174cee3a3cdcdf17db357470f51caff
authorDmitry Adamushko <dmitry.adamushko@gmail.com>
Fri, 8 Feb 2008 14:41:13 +0000 (8 15:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Feb 2008 17:46:53 +0000 (29 18:46 +0100)
treefcc341251c8fcab1b950d7bda25de9ca09fc5363
parent2232c2d8e0a6a31061dec311f3d1cf7624bc14f1
softlockup: fix task state setting

kthread_stop() can be called when a 'watchdog' thread is executing after
kthread_should_stop() but before set_task_state(TASK_INTERRUPTIBLE).

Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/softlockup.c