rcu: Use true/false for return in rcu_nocb_adopt_orphan_cbs()
[deliverable/linux.git] / kernel / kthread.c
index c2390f41307bca58cdd9b14bb9530d8a16c20e6c..ef483220e85564670600c9a3951e66fe20672bed 100644 (file)
@@ -591,7 +591,7 @@ static void insert_kthread_work(struct kthread_worker *worker,
 
        list_add_tail(&work->node, pos);
        work->worker = worker;
-       if (likely(worker->task))
+       if (!worker->current_work && likely(worker->task))
                wake_up_process(worker->task);
 }
 
This page took 0.08113 seconds and 5 git commands to generate.