Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14905
b: refs/heads/master
c: de92248
h: refs/heads/master
i:
  14903: 57cbb84
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed Nov 29, 2005
1 parent 057adee commit 9f89bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 5872a9fc28e6cd3a4e51479a50970d19a01573b3
refs/heads/master: de922487890936470660e89f9095aee980637989
6 changes: 4 additions & 2 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ static struct ipoib_mcast *ipoib_mcast_alloc(struct net_device *dev,
if (!mcast)
return NULL;

init_completion(&mcast->done);

mcast->dev = dev;
mcast->created = jiffies;
mcast->backoff = 1;
Expand Down Expand Up @@ -350,6 +348,8 @@ static int ipoib_mcast_sendonly_join(struct ipoib_mcast *mcast)
rec.port_gid = priv->local_gid;
rec.pkey = cpu_to_be16(priv->pkey);

init_completion(&mcast->done);

ret = ib_sa_mcmember_rec_set(priv->ca, priv->port, &rec,
IB_SA_MCMEMBER_REC_MGID |
IB_SA_MCMEMBER_REC_PORT_GID |
Expand Down Expand Up @@ -469,6 +469,8 @@ static void ipoib_mcast_join(struct net_device *dev, struct ipoib_mcast *mcast,
rec.traffic_class = priv->broadcast->mcmember.traffic_class;
}

init_completion(&mcast->done);

ret = ib_sa_mcmember_rec_set(priv->ca, priv->port, &rec, comp_mask,
mcast->backoff * 1000, GFP_ATOMIC,
ipoib_mcast_join_complete,
Expand Down

0 comments on commit 9f89bc8

Please sign in to comment.