Skip to content

Commit e179362

Browse files
committed
Don't set persistent requests to MPI_REQUEST_NULL
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 3117499 commit e179362

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ompi/mpiext/continue/c/continuation.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,14 +750,14 @@ static int request_completion_cb(ompi_request_t *request)
750750

751751
int32_t failed_tmp = 0;
752752
if (request->req_status.MPI_ERROR == MPI_SUCCESS) {
753-
if (NULL != cont->cont_opreqs) {
754-
cont->cont_opreqs[req_cont_data->cont_idx] = MPI_REQUEST_NULL;
755-
}
756753

757754
/* inactivate / free the request */
758755
if (request->req_persistent) {
759756
request->req_state = OMPI_REQUEST_INACTIVE;
760757
} else {
758+
if (NULL != cont->cont_opreqs) {
759+
cont->cont_opreqs[req_cont_data->cont_idx] = MPI_REQUEST_NULL;
760+
}
761761
/* wait for any thread in the failure handler to complete handling the requests */
762762
while (cont->cont_request_check) {}
763763
/* we own the request so release it and let the caller know */

0 commit comments

Comments
 (0)