From 4df7951bfe37ee3d6e2b02662bae072fe14ee727 Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Tue, 10 Jul 2018 16:10:26 -0600 Subject: [PATCH] osc/rdma: fix bug introduced in b90c838 This commit fixes an bug that was introduced back in 2016 which impacts request-based RMA in some cases. Signed-off-by: Nathan Hjelm (cherry picked from commit 037656bc1d974be7c4e9e3eecbb72a8e31f8ff5c) Signed-off-by: Nathan Hjelm --- ompi/mca/osc/rdma/osc_rdma_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/osc/rdma/osc_rdma_request.c b/ompi/mca/osc/rdma/osc_rdma_request.c index 625b4d380ed..2675c9cd9b4 100644 --- a/ompi/mca/osc/rdma/osc_rdma_request.c +++ b/ompi/mca/osc/rdma/osc_rdma_request.c @@ -33,7 +33,7 @@ static int request_free(struct ompi_request_t **ompi_req) ompi_osc_rdma_request_t *request = (ompi_osc_rdma_request_t*) *ompi_req; - if( REQUEST_COMPLETE(&request->super) ) { + if (!REQUEST_COMPLETE(&request->super)) { return MPI_ERR_REQUEST; }