[openib-general] [PATCH RFC 08/21] ofed_1_2 Backport cancel_rearming_workqueue().

Steve Wise swise at opengridcomputing.com
Mon Jan 15 13:19:34 PST 2007


Backport cancel_rearming_workqueue().

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 .../2.6.5_sles9_sp3/include/linux/workqueue.h      |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/workqueue.h b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/workqueue.h
index 330f47f..f90d134 100644
--- a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/workqueue.h
+++ b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/workqueue.h
@@ -26,6 +26,13 @@ backport_cancel_delayed_work(struct dela
 	return cancel_delayed_work(&work->work);
 }
 
+static inline void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
+				       struct delayed_work *dwork)
+{
+	while (!cancel_delayed_work(&dwork->work))
+		flush_workqueue(wq);
+}
+
 
 #undef INIT_WORK
 #define INIT_WORK(_work, _func) backport_INIT_WORK(_work, _func)




More information about the general mailing list