aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/workqueue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 74f3f7825229..ce72d45c7fd8 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -569,6 +569,10 @@ EXPORT_SYMBOL(flush_work_keventd);
569void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, 569void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
570 struct delayed_work *dwork) 570 struct delayed_work *dwork)
571{ 571{
572 /* Was it ever queued ? */
573 if (!get_wq_data(&dwork->work))
574 return;
575
572 while (!cancel_delayed_work(dwork)) 576 while (!cancel_delayed_work(dwork))
573 flush_workqueue(wq); 577 flush_workqueue(wq);
574} 578}