瀏覽代碼

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>
Bryan O'Sullivan 19 年之前
父節點
當前提交
092260b8f9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/infiniband/hw/ipath/ipath_verbs_mcast.c

+ 2 - 0
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);