diff options
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 996c6e16a46d..cb078a7d0bf5 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c | |||
@@ -336,9 +336,8 @@ void ipoib_flush_paths(struct net_device *dev) | |||
336 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 336 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
337 | struct ipoib_path *path, *tp; | 337 | struct ipoib_path *path, *tp; |
338 | LIST_HEAD(remove_list); | 338 | LIST_HEAD(remove_list); |
339 | unsigned long flags; | ||
340 | 339 | ||
341 | spin_lock_irqsave(&priv->lock, flags); | 340 | spin_lock_irq(&priv->lock); |
342 | 341 | ||
343 | list_splice(&priv->path_list, &remove_list); | 342 | list_splice(&priv->path_list, &remove_list); |
344 | INIT_LIST_HEAD(&priv->path_list); | 343 | INIT_LIST_HEAD(&priv->path_list); |
@@ -349,12 +348,12 @@ void ipoib_flush_paths(struct net_device *dev) | |||
349 | list_for_each_entry_safe(path, tp, &remove_list, list) { | 348 | list_for_each_entry_safe(path, tp, &remove_list, list) { |
350 | if (path->query) | 349 | if (path->query) |
351 | ib_sa_cancel_query(path->query_id, path->query); | 350 | ib_sa_cancel_query(path->query_id, path->query); |
352 | spin_unlock_irqrestore(&priv->lock, flags); | 351 | spin_unlock_irq(&priv->lock); |
353 | wait_for_completion(&path->done); | 352 | wait_for_completion(&path->done); |
354 | path_free(dev, path); | 353 | path_free(dev, path); |
355 | spin_lock_irqsave(&priv->lock, flags); | 354 | spin_lock_irq(&priv->lock); |
356 | } | 355 | } |
357 | spin_unlock_irqrestore(&priv->lock, flags); | 356 | spin_unlock_irq(&priv->lock); |
358 | } | 357 | } |
359 | 358 | ||
360 | static void path_rec_completion(int status, | 359 | static void path_rec_completion(int status, |