tree 5e89b0f6bb47a43b3b00d30a5e1e22db727b5047
parent 9ffb7146f0aa9c0070cda3d8701b0a89e34913d1
author James Bottomley <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:23:59 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:23:59 -0700
[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]>
linux/workqueue.h | 2 ++
workqueue.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
Index: include/linux/workqueue.h
===================================================================
--- 74da3bcb6c603f2681182250007d38e0c2c620a3/include/linux/workqueue.h
(mode:100644 sha1:ff46f537ba9b30625448ca83b5f48a6bd49d1434)
+++ 5e89b0f6bb47a43b3b00d30a5e1e22db727b5047/include/linux/workqueue.h
(mode:100644 sha1:ac39d04d027cd6affbe914b914eed138fa1dab89)
@@ -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
===================================================================
--- 74da3bcb6c603f2681182250007d38e0c2c620a3/kernel/workqueue.c (mode:100644
sha1:52ef419d274796383cb8e757349ea71fcedd8f34)
+++ 5e89b0f6bb47a43b3b00d30a5e1e22db727b5047/kernel/workqueue.c (mode:100644
sha1:259cf55da3c9002cf390099fafa5f2de885ecc89)
@@ -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