Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

IPoIB: reinitialize mcast structs' completions for every query

Make sure mcast->done is initialized to uncompleted value before we
submit a new query, so that it's safe to wait on.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by

Michael S. Tsirkin and committed by
Roland Dreier
de922487 5872a9fc

+4 -2
+4 -2
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
··· 135 135 if (!mcast) 136 136 return NULL; 137 137 138 - init_completion(&mcast->done); 139 - 140 138 mcast->dev = dev; 141 139 mcast->created = jiffies; 142 140 mcast->backoff = 1; ··· 348 350 rec.port_gid = priv->local_gid; 349 351 rec.pkey = cpu_to_be16(priv->pkey); 350 352 353 + init_completion(&mcast->done); 354 + 351 355 ret = ib_sa_mcmember_rec_set(priv->ca, priv->port, &rec, 352 356 IB_SA_MCMEMBER_REC_MGID | 353 357 IB_SA_MCMEMBER_REC_PORT_GID | ··· 468 468 rec.flow_label = priv->broadcast->mcmember.flow_label; 469 469 rec.traffic_class = priv->broadcast->mcmember.traffic_class; 470 470 } 471 + 472 + init_completion(&mcast->done); 471 473 472 474 ret = ib_sa_mcmember_rec_set(priv->ca, priv->port, &rec, comp_mask, 473 475 mcast->backoff * 1000, GFP_ATOMIC,