aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_multicast.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
index 03b2ca64a40c..bf1c08cca8cb 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
@@ -827,7 +827,8 @@ void ipoib_mcast_restart_task(void *dev_ptr)
827 827
828 ipoib_mcast_stop_thread(dev, 0); 828 ipoib_mcast_stop_thread(dev, 0);
829 829
830 spin_lock_irqsave(&priv->lock, flags); 830 spin_lock_irqsave(&dev->xmit_lock, flags);
831 spin_lock(&priv->lock);
831 832
832 /* 833 /*
833 * Unfortunately, the networking core only gives us a list of all of 834 * Unfortunately, the networking core only gives us a list of all of
@@ -899,7 +900,9 @@ void ipoib_mcast_restart_task(void *dev_ptr)
899 list_add_tail(&mcast->list, &remove_list); 900 list_add_tail(&mcast->list, &remove_list);
900 } 901 }
901 } 902 }
902 spin_unlock_irqrestore(&priv->lock, flags); 903
904 spin_unlock(&priv->lock);
905 spin_unlock_irqrestore(&dev->xmit_lock, flags);
903 906
904 /* We have to cancel outside of the spinlock */ 907 /* We have to cancel outside of the spinlock */
905 list_for_each_entry_safe(mcast, tmcast, &remove_list, list) { 908 list_for_each_entry_safe(mcast, tmcast, &remove_list, list) {