Skip to content

Commit

Permalink
Remove uGNI library cleanup logic
Browse files Browse the repository at this point in the history
The library cleanup logic was added in hopes of fixing the
uGNI resource leak that occurs when communication domain
members exit. This logic did not fix the leak and results
in warnings from the device driver on process exit
which is confusing to the user.
  • Loading branch information
tom95858 committed Apr 16, 2021
1 parent ab49e08 commit 088700d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/src/zap/ugni/zap_ugni.c
Original file line number Diff line number Diff line change
Expand Up @@ -2976,21 +2976,3 @@ zap_err_t zap_transport_get(zap_t *pz, zap_log_fn_t log_fn,
return ZAP_ERR_RESOURCE;
}

static void __attribute__ ((destructor)) ugni_fini(void);
static void ugni_fini()
{
gni_return_t grc;
struct ugni_mh *mh;

while (!LIST_EMPTY(&mh_list)) {
mh = LIST_FIRST(&mh_list);
ZUGNI_LIST_REMOVE(mh, link);
(void)GNI_MemDeregister(_dom.nic, &mh->mh);
free(mh);
}

grc = GNI_CdmDestroy(_dom.cdm);
if (grc != GNI_RC_SUCCESS)
LOG("GNI_CdmDestroy failed with error %d\n", grc);
}

0 comments on commit 088700d

Please sign in to comment.