From 5af4d02bd3b601a18f6fb03b1837fceb6534261e Mon Sep 17 00:00:00 2001 From: Alex Mikheev Date: Tue, 7 Oct 2014 17:35:19 +0300 Subject: [PATCH] OSHMEM: spml ikrit: complete puts b4 memheap destruction Force completion of all puts before deregestering memheap/bss memory Fixes a possible race condition where put request completion callback is called when request context is already cleared. Change-Id: I7ed887ec0b03a66ce5d3076a7edcf64061f57370 --- oshmem/mca/spml/ikrit/spml_ikrit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/oshmem/mca/spml/ikrit/spml_ikrit.c b/oshmem/mca/spml/ikrit/spml_ikrit.c index 0ad39f1cb1..bf80eba916 100644 --- a/oshmem/mca/spml/ikrit/spml_ikrit.c +++ b/oshmem/mca/spml/ikrit/spml_ikrit.c @@ -662,6 +662,7 @@ int mca_spml_ikrit_deregister(sshmem_mkey_t *mkeys) { int i; + MCA_SPML_CALL(fence()); if (!mkeys) return OSHMEM_SUCCESS;