From e223b272689378c8747e3d019bad7134f98df1d2 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sun, 31 Dec 2006 03:17:47 +0000 Subject: [PATCH] A fragment is marked completed by the PML when the peer signal the completion of the RDMA operation associated with the fragment. The PML will call the BML free which in turn will call the BTL free. The MX BTL will not release the fragment if it not tagged with 0xff. This commit was SVN r12947. --- ompi/mca/btl/mx/btl_mx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/btl/mx/btl_mx.c b/ompi/mca/btl/mx/btl_mx.c index 9a3956911d..89abd4673c 100644 --- a/ompi/mca/btl/mx/btl_mx.c +++ b/ompi/mca/btl/mx/btl_mx.c @@ -317,6 +317,9 @@ mca_btl_base_descriptor_t* mca_btl_mx_prepare_dst( struct mca_btl_base_module_t* return NULL; } + /* Allow the fragment to be recycled using the mca_btl_mx_free function */ + frag->tag = 0xff; + frag->base.des_dst = frag->segment; frag->base.des_dst_cnt = 1;