History

[PATCH] re-export cancel_rearming_delayed_workqueue

This was unexported by Arjan because we have no current users. However, during a conversion from tasklets to workqueues of the parisc led functions, we ran across a case where this was needed. In particular, the open coded equivalent of cancel_rearming_delayed_workqueue was implemented incorrectly, which is, I think, all the evidence necessary that this is a useful API.

James Bottomley committed 21 years ago

Commit 81ddef71 parent 9ffb7142 files · +5 −2Browse files

Showing the changes to kernel/workqueue.c (1 of 2 files). Show all

Unified · Split

kernel/workqueue.c+3−2
@@ -429,12 +429,13 @@ void flush_scheduled_work(void) · 428 unmodified lines
429429 * @wq: the controlling workqueue structure
430430 * @work: the delayed work struct
431431 */
432−static void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
433− struct work_struct *work)
432+void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
433+ struct work_struct *work)
434434 {
435435 while (!cancel_delayed_work(work))
436436 flush_workqueue(wq);
437437 }
438+EXPORT_SYMBOL(cancel_rearming_delayed_workqueue);
438439
439440 /**
440441 * cancel_rearming_delayed_work - reliably kill off a delayed keventd