[openib-general] [PATCH] CM:destroy workqueue on cleanup

Sean Hefty mshefty at ichips.intel.com
Tue Jan 18 12:21:25 PST 2005


Committing patch to destroy the workqueue in the CM on cleanup.

- Sean

signed-off-by: Sean Hefty <sean.hefty at intel.com>

Index: core/cm.c
===================================================================
--- core/cm.c	(revision 1549)
+++ core/cm.c	(working copy)
@@ -2427,6 +2427,8 @@
 
 static void __exit ib_cm_cleanup(void)
 {
+	flush_workqueue(cm.wq);
+	destroy_workqueue(cm.wq);
 	ib_unregister_client(&cm_client);
 }
 



More information about the general mailing list