21863393 qperf attempts to free the PD before freeing the MR associated with it
authorboris.chiu@oracle.com
Wed, 30 Sep 2015 09:48:41 -0700
changeset 4907 38c3e88acfc0
parent 4906 51866e99eff7
child 4908 8eb64ba1b2ad
21863393 qperf attempts to free the PD before freeing the MR associated with it
components/open-fabrics/qperf/patches/base.patch
--- a/components/open-fabrics/qperf/patches/base.patch	Fri Sep 25 15:23:48 2015 -0500
+++ b/components/open-fabrics/qperf/patches/base.patch	Wed Sep 30 09:48:41 2015 -0700
@@ -533,6 +533,19 @@
  }
  
  
[email protected]@ -1599,11 +1652,11 @@
+         ibv_destroy_ah(dev->ah);
+     if (dev->cq)
+         ibv_destroy_cq(dev->cq);
++    rd_mrfree(dev);
+     if (dev->pd)
+         ibv_dealloc_pd(dev->pd);
+     if (dev->channel)
+         ibv_destroy_comp_channel(dev->channel);
+-    rd_mrfree(dev);
+ 
+     if (!Req.use_cm)
+         ib_close2(dev);
 @@ -1864,10 +1917,16 @@
          error(0, "rdma_bind_addr failed");
      port = ntohs(rdma_get_src_port(cm->id));