diff options
-rw-r--r-- | kernel/kthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index c2390f41307b..ef483220e855 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c | |||
@@ -591,7 +591,7 @@ static void insert_kthread_work(struct kthread_worker *worker, | |||
591 | 591 | ||
592 | list_add_tail(&work->node, pos); | 592 | list_add_tail(&work->node, pos); |
593 | work->worker = worker; | 593 | work->worker = worker; |
594 | if (likely(worker->task)) | 594 | if (!worker->current_work && likely(worker->task)) |
595 | wake_up_process(worker->task); | 595 | wake_up_process(worker->task); |
596 | } | 596 | } |
597 | 597 | ||