]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IB/ipath: account for attached QPs correctly
authorBryan O'Sullivan <bos@pathscale.com>
Fri, 25 Aug 2006 18:24:38 +0000 (11:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:35 +0000 (15:22 -0700)
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_verbs_mcast.c

index cb35679e4a185ed80d18ebea3ba1c0d4db03bf28..085e28b939ec5699d0ea3cf3639fe4f6d3929403 100644 (file)
@@ -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);