From 6aa56800594bf2d6b7c29ad9c156990fb65ad8d9 Mon Sep 17 00:00:00 2001 From: Yossi Etigin Date: Thu, 1 May 2014 22:17:09 +0000 Subject: [PATCH] Revert r30966. cmr=v1.8.1:reviewer=ompi-gk1.8 This commit was SVN r31593. The following SVN revision numbers were found above: r30966 --> open-mpi/ompi@280e96c99a166b3bca2066166083e4a911cfc2b9 --- ompi/mca/mtl/mxm/mtl_mxm.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ompi/mca/mtl/mxm/mtl_mxm.c b/ompi/mca/mtl/mxm/mtl_mxm.c index 26a15526e7..0d1b3378c8 100644 --- a/ompi/mca/mtl/mxm/mtl_mxm.c +++ b/ompi/mca/mtl/mxm/mtl_mxm.c @@ -500,12 +500,10 @@ int ompi_mtl_mxm_del_procs(struct mca_mtl_base_module_t *mtl, size_t nprocs, * in the way we handle endpoints as objects */ for (i = 0; i < nprocs; ++i) { - if (((opal_object_t*)procs[i])->obj_reference_count == 1) { - mca_mtl_mxm_endpoint_t *endpoint = (mca_mtl_mxm_endpoint_t*) - procs[i]->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL]; - mxm_ep_disconnect(endpoint->mxm_conn); - OBJ_RELEASE(endpoint); - } + mca_mtl_mxm_endpoint_t *endpoint = (mca_mtl_mxm_endpoint_t*) + procs[i]->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL]; + mxm_ep_disconnect(endpoint->mxm_conn); + OBJ_RELEASE(endpoint); } return OMPI_SUCCESS; }