tree dbace1a5a55b21c848824ce9b0b7ad8150afd099
parent e314b53b8b352582d07cbb8c311c676dbce6d67b
author James Bottomley <[EMAIL PROTECTED]> Tue Apr 12 08:24:35 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:24:35 2005

[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.

Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 include/linux/workqueue.h |    2 ++
 kernel/workqueue.c        |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

Index: include/linux/workqueue.h
===================================================================
--- 1b9a67d111ac858e038716aa11a94243b2aee5da/include/linux/workqueue.h  
(mode:100644 sha1:f8940b7fe608316549c4ab9d9f196cf760d5d2a6)
+++ dbace1a5a55b21c848824ce9b0b7ad8150afd099/include/linux/workqueue.h  
(mode:100644 sha1:cb126696df8b28a324508a888e2f71ca3efb05e8)
@@ -71,6 +71,8 @@
 
 extern void init_workqueues(void);
 void cancel_rearming_delayed_work(struct work_struct *work);
+void cancel_rearming_delayed_workqueue(struct workqueue_struct *,
+                                      struct work_struct *);
 
 /*
  * Kill off a pending schedule_delayed_work().  Note that the work callback
Index: kernel/workqueue.c
===================================================================
--- 1b9a67d111ac858e038716aa11a94243b2aee5da/kernel/workqueue.c  (mode:100644 
sha1:b91fd4a57ee3677a13ad47bf694dc4972a07c64f)
+++ dbace1a5a55b21c848824ce9b0b7ad8150afd099/kernel/workqueue.c  (mode:100644 
sha1:45d68708f9a810c769efab34fc81614b85ea79b5)
@@ -429,12 +429,13 @@
  * @wq:   the controlling workqueue structure
  * @work: the delayed work struct
  */
-static void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
-                                       struct work_struct *work)
+void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
+                                      struct work_struct *work)
 {
        while (!cancel_delayed_work(work))
                flush_workqueue(wq);
 }
+EXPORT_SYMBOL(cancel_rearming_delayed_workqueue);
 
 /**
  * cancel_rearming_delayed_work - reliably kill off a delayed keventd
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to