diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 5c00e8f4f315..5cf8b2409d3b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1983,8 +1983,10 @@ static int rescuer_thread(void *__wq) repeat: set_current_state(TASK_INTERRUPTIBLE); - if (kthread_should_stop()) + if (kthread_should_stop()) { + __set_current_state(TASK_RUNNING); return 0; + } /* * See whether any cpu is asking for help. Unbounded