diff options
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index ccefe574dcf7..47cdd7e76f2b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -647,7 +647,7 @@ EXPORT_SYMBOL(schedule_delayed_work); | |||
647 | */ | 647 | */ |
648 | void flush_delayed_work(struct delayed_work *dwork) | 648 | void flush_delayed_work(struct delayed_work *dwork) |
649 | { | 649 | { |
650 | if (del_timer(&dwork->timer)) { | 650 | if (del_timer_sync(&dwork->timer)) { |
651 | struct cpu_workqueue_struct *cwq; | 651 | struct cpu_workqueue_struct *cwq; |
652 | cwq = wq_per_cpu(keventd_wq, get_cpu()); | 652 | cwq = wq_per_cpu(keventd_wq, get_cpu()); |
653 | __queue_work(cwq, &dwork->work); | 653 | __queue_work(cwq, &dwork->work); |