[openib-general] [PATCH] flush_scheduled_work on SDP module unload
Michael S. Tsirkin
mst at mellanox.co.il
Thu Aug 4 05:06:01 PDT 2005
Need to flush scheduled work on SDP module unload: make sure
that a deferred iocb isnt outstanding.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: linux-2.6.12.2/drivers/infiniband/ulp/sdp/sdp_inet.c
===================================================================
--- linux-2.6.12.2.orig/drivers/infiniband/ulp/sdp/sdp_inet.c
+++ linux-2.6.12.2/drivers/infiniband/ulp/sdp/sdp_inet.c
@@ -35,6 +35,7 @@
#include <linux/tcp.h>
#include <asm/ioctls.h>
+#include <linux/workqueue.h>
#include "sdp_main.h"
/*
@@ -1426,6 +1427,12 @@ static void __exit sdp_exit(void)
* unregister
*/
sock_unregister(sdp_proto.family);
+
+ /*
+ Make sure there are no deferred iocbs
+ */
+ flush_scheduled_work();
+
/*
* connection table
*/
--
MST
More information about the general
mailing list