summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-08-25 11:24:38 -0700
committerRoland Dreier <rolandd@cisco.com>2006-09-22 15:22:35 -0700
commit092260b8f966ebe0742045416082e9a81bd971d1 (patch)
treebcd29243f82cfcd6d69d7ec761a7709ae859d509 /drivers
parenteae33d47a797e159306567643284a98ae7428ec4 (diff)
downloadlinux-092260b8f966ebe0742045416082e9a81bd971d1.tar.bz2
IB/ipath: account for attached QPs correctly
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_verbs_mcast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c
index cb35679e4a18..085e28b939ec 100644
--- a/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c
+++ b/drivers/infiniband/hw/ipath/ipath_verbs_mcast.c
@@ -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);