diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_verbs.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c index 96f9aa79cbbe..f50ebe0643ef 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c | |||
@@ -61,9 +61,7 @@ int ipoib_mcast_attach(struct net_device *dev, u16 mlid, union ib_gid *mgid) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | /* attach QP to multicast group */ | 63 | /* attach QP to multicast group */ |
64 | mutex_lock(&priv->mcast_mutex); | ||
65 | ret = ib_attach_mcast(priv->qp, mgid, mlid); | 64 | ret = ib_attach_mcast(priv->qp, mgid, mlid); |
66 | mutex_unlock(&priv->mcast_mutex); | ||
67 | if (ret) | 65 | if (ret) |
68 | ipoib_warn(priv, "failed to attach to multicast group, ret = %d\n", ret); | 66 | ipoib_warn(priv, "failed to attach to multicast group, ret = %d\n", ret); |
69 | 67 | ||
@@ -77,9 +75,7 @@ int ipoib_mcast_detach(struct net_device *dev, u16 mlid, union ib_gid *mgid) | |||
77 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 75 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
78 | int ret; | 76 | int ret; |
79 | 77 | ||
80 | mutex_lock(&priv->mcast_mutex); | ||
81 | ret = ib_detach_mcast(priv->qp, mgid, mlid); | 78 | ret = ib_detach_mcast(priv->qp, mgid, mlid); |
82 | mutex_unlock(&priv->mcast_mutex); | ||
83 | if (ret) | 79 | if (ret) |
84 | ipoib_warn(priv, "ib_detach_mcast failed (result = %d)\n", ret); | 80 | ipoib_warn(priv, "ib_detach_mcast failed (result = %d)\n", ret); |
85 | 81 | ||