diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 56f793d044a5..bcb9d342714b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -2040,8 +2040,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