1
1

osc rdma: check for outstanding fragments before completing a request in ompi_osc_rdma_put_complete_flush as well

Signed-off-by: Joseph Schuchart <schuchart@hlrs.de>
Этот коммит содержится в:
Joseph Schuchart 2020-06-26 22:19:21 +02:00
родитель 85ed26f2f8
Коммит caed3b2eed

Просмотреть файл

@ -422,8 +422,10 @@ static void ompi_osc_rdma_put_complete_flush (struct mca_btl_base_module_t *btl,
ompi_osc_rdma_request_t *request = request = (ompi_osc_rdma_request_t *) ((intptr_t) context & ~1); ompi_osc_rdma_request_t *request = request = (ompi_osc_rdma_request_t *) ((intptr_t) context & ~1);
module = request->module; module = request->module;
/* NTH -- TODO: better error handling */ if (0 == OPAL_THREAD_ADD_FETCH32 (&request->outstanding_requests, -1)) {
ompi_osc_rdma_request_complete (request, status); /* NTH -- TODO: better error handling */
ompi_osc_rdma_request_complete (request, status);
}
} }
OSC_RDMA_VERBOSE(status ? MCA_BASE_VERBOSE_ERROR : MCA_BASE_VERBOSE_TRACE, "btl put complete on module %p. local " OSC_RDMA_VERBOSE(status ? MCA_BASE_VERBOSE_ERROR : MCA_BASE_VERBOSE_TRACE, "btl put complete on module %p. local "