diff options
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 52ef419d2747..259cf55da3c9 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -429,12 +429,13 @@ void flush_scheduled_work(void) | |||
| 429 | * @wq: the controlling workqueue structure | 429 | * @wq: the controlling workqueue structure |
| 430 | * @work: the delayed work struct | 430 | * @work: the delayed work struct |
| 431 | */ | 431 | */ |
| 432 | static void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, | 432 | void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, |
| 433 | struct work_struct *work) | 433 | struct work_struct *work) |
| 434 | { | 434 | { |
| 435 | while (!cancel_delayed_work(work)) | 435 | while (!cancel_delayed_work(work)) |
| 436 | flush_workqueue(wq); | 436 | flush_workqueue(wq); |
| 437 | } | 437 | } |
| 438 | EXPORT_SYMBOL(cancel_rearming_delayed_workqueue); | ||
| 438 | 439 | ||
| 439 | /** | 440 | /** |
| 440 | * cancel_rearming_delayed_work - reliably kill off a delayed keventd | 441 | * cancel_rearming_delayed_work - reliably kill off a delayed keventd |
