mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
IB/ipath: account for attached QPs correctly
Signed-off-by: Bryan O'Sullivan <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
1 parent
eae33d47a7
commit
092260b8f9
1 file changed
+2
@@ -217,6 +217,8 @@ static int ipath_mcast_add(struct ipath_ibdev *dev,
|
|||||||
dev->n_mcast_grps_allocated++;
|
dev->n_mcast_grps_allocated++;
|
||||||
spin_unlock(&dev->n_mcast_grps_lock);
|
spin_unlock(&dev->n_mcast_grps_lock);
|
||||||
|
|
||||||
|
mcast->n_attached++;
|
||||||
|
|
||||||
list_add_tail_rcu(&mqp->list, &mcast->qp_list);
|
list_add_tail_rcu(&mqp->list, &mcast->qp_list);
|
||||||
|
|
||||||
atomic_inc(&mcast->refcount);
|
atomic_inc(&mcast->refcount);
|
||||||
|
|||||||
Reference in new issue
Block a user