Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25703
b: refs/heads/master
c: f697f74
h: refs/heads/master
i:
  25701: 278d891
  25699: e75b98b
  25695: 71f01d0
v: v3
  • Loading branch information
Roland Dreier committed Apr 10, 2006
1 parent 5121b72 commit b639940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: a30bb96c6f5aca6513e4dbd94962da03d14b20a9
refs/heads/master: f697f74a6b189702474b2fd457e1f9365fa213e3
9 changes: 4 additions & 5 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,8 @@ void ipoib_flush_paths(struct net_device *dev)
struct ipoib_dev_priv *priv = netdev_priv(dev);
struct ipoib_path *path, *tp;
LIST_HEAD(remove_list);
unsigned long flags;

spin_lock_irqsave(&priv->lock, flags);
spin_lock_irq(&priv->lock);

list_splice(&priv->path_list, &remove_list);
INIT_LIST_HEAD(&priv->path_list);
Expand All @@ -349,12 +348,12 @@ void ipoib_flush_paths(struct net_device *dev)
list_for_each_entry_safe(path, tp, &remove_list, list) {
if (path->query)
ib_sa_cancel_query(path->query_id, path->query);
spin_unlock_irqrestore(&priv->lock, flags);
spin_unlock_irq(&priv->lock);
wait_for_completion(&path->done);
path_free(dev, path);
spin_lock_irqsave(&priv->lock, flags);
spin_lock_irq(&priv->lock);
}
spin_unlock_irqrestore(&priv->lock, flags);
spin_unlock_irq(&priv->lock);
}

static void path_rec_completion(int status,
Expand Down

0 comments on commit b639940

Please sign in to comment.