Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9127
b: refs/heads/master
c: 8d2cae0
h: refs/heads/master
i:
  9125: 52d4566
  9123: 77ffe20
  9119: 81e0e34
v: v3
  • Loading branch information
Roland Dreier committed Sep 20, 2005
1 parent 6ec4963 commit d9b6b91
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eff4c654b1a4a5e5493fbdc3affa6dd48765c085
refs/heads/master: 8d2cae0651502028bf64844508ab18528bbd65c2
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/ulp/ipoib/ipoib.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void ipoib_mcast_send(struct net_device *dev, union ib_gid *mgid,

void ipoib_mcast_restart_task(void *dev_ptr);
int ipoib_mcast_start_thread(struct net_device *dev);
int ipoib_mcast_stop_thread(struct net_device *dev);
int ipoib_mcast_stop_thread(struct net_device *dev, int flush);

void ipoib_mcast_dev_down(struct net_device *dev);
void ipoib_mcast_dev_flush(struct net_device *dev);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ int ipoib_ib_dev_down(struct net_device *dev)
flush_workqueue(ipoib_workqueue);
}

ipoib_mcast_stop_thread(dev);
ipoib_mcast_stop_thread(dev, 1);

/*
* Flush the multicast groups first so we stop any multicast joins. The
Expand Down Expand Up @@ -599,7 +599,7 @@ void ipoib_ib_dev_cleanup(struct net_device *dev)

ipoib_dbg(priv, "cleaning up ib_dev\n");

ipoib_mcast_stop_thread(dev);
ipoib_mcast_stop_thread(dev, 1);

/* Delete the broadcast address and the local address */
ipoib_mcast_dev_down(dev);
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ int ipoib_mcast_start_thread(struct net_device *dev)
return 0;
}

int ipoib_mcast_stop_thread(struct net_device *dev)
int ipoib_mcast_stop_thread(struct net_device *dev, int flush)
{
struct ipoib_dev_priv *priv = netdev_priv(dev);
struct ipoib_mcast *mcast;
Expand All @@ -610,7 +610,8 @@ int ipoib_mcast_stop_thread(struct net_device *dev)
cancel_delayed_work(&priv->mcast_task);
up(&mcast_mutex);

flush_workqueue(ipoib_workqueue);
if (flush)
flush_workqueue(ipoib_workqueue);

if (priv->broadcast && priv->broadcast->query) {
ib_sa_cancel_query(priv->broadcast->query_id, priv->broadcast->query);
Expand Down Expand Up @@ -832,7 +833,7 @@ void ipoib_mcast_restart_task(void *dev_ptr)

ipoib_dbg_mcast(priv, "restarting multicast task\n");

ipoib_mcast_stop_thread(dev);
ipoib_mcast_stop_thread(dev, 0);

spin_lock_irqsave(&priv->lock, flags);

Expand Down

0 comments on commit d9b6b91

Please sign in to comment.