[openib-general] [PATCH] ipoib: flush workqueue after clearing ADMIN_UP
Michael S. Tsirkin
mst at mellanox.co.il
Tue Jan 10 10:54:03 PST 2006
Flush workqueue after clearing IPOIB_FLAG_ADMIN_UP, to prevent
a job running from the workqueue from bringing the device back up.
Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: gen2/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- gen2.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c 2006-01-10 10:33:32.101242000 +0200
+++ gen2/drivers/infiniband/ulp/ipoib/ipoib_main.c 2006-01-10 10:43:02.254713000 +0200
@@ -134,6 +134,8 @@ static int ipoib_stop(struct net_device
netif_stop_queue(dev);
+ flush_workqueue(ipoib_workqueue);
+
ipoib_ib_dev_down(dev, 1);
ipoib_ib_dev_stop(dev);
--
MST
More information about the general
mailing list