Skip to content

Commit

Permalink
IB/ipath: account for attached QPs correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 22, 2006
1 parent eae33d4 commit 092260b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/ipath/ipath_verbs_mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ static int ipath_mcast_add(struct ipath_ibdev *dev,
dev->n_mcast_grps_allocated++;
spin_unlock(&dev->n_mcast_grps_lock);

mcast->n_attached++;

list_add_tail_rcu(&mqp->list, &mcast->qp_list);

atomic_inc(&mcast->refcount);
Expand Down

0 comments on commit 092260b

Please sign in to comment.