diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2006-03-20 13:08:24 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:24 -0500 |
commit | 0b3ea0829cbcdaee6e018a83a2949ef458213f3b (patch) | |
tree | 3e86dc70e4b71b1de1e9ab2df319b014dd242f7c /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | 8b9ab02b690e988f19c9d740ef642d7d833d23d5 (diff) |
IPoIB: Move ipoib_ib_dev_flush() to ipoib workqueue
Move ipoib_ib_dev_flush() to ipoib's workqueue. This keeps it ordered
with respect to other work scheduled by the ipoib driver. This fixes
problems with races, for example:
- ipoib_ib_dev_flush() has started running because of an IB event
- user does ifconfig ib0 down
- ipoib_mcast_stop_thread() gets called twice and waits for the same
completion twice
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 638eff745b2f..1251f86ec856 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -259,7 +259,7 @@ void ipoib_ib_dev_cleanup(struct net_device *dev); | |||
259 | 259 | ||
260 | int ipoib_ib_dev_open(struct net_device *dev); | 260 | int ipoib_ib_dev_open(struct net_device *dev); |
261 | int ipoib_ib_dev_up(struct net_device *dev); | 261 | int ipoib_ib_dev_up(struct net_device *dev); |
262 | int ipoib_ib_dev_down(struct net_device *dev); | 262 | int ipoib_ib_dev_down(struct net_device *dev, int flush); |
263 | int ipoib_ib_dev_stop(struct net_device *dev); | 263 | int ipoib_ib_dev_stop(struct net_device *dev); |
264 | 264 | ||
265 | int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port); | 265 | int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port); |