Skip to content

Commit 8c0fb18

Browse files
committed
io/ompio: correctly reset the request
after performing the final OBJ_RELEASE on the request, reset the user level variable to MPI_REQUEST_NULL. Otherwise the c_2_f translation step in the fortran interface fails. Fixes issue #4807 Signed-off-by: Edgar Gabriel <[email protected]> (cherry picked from commit a3a734b)
1 parent b6e825f commit 8c0fb18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/io/ompio/io_ompio_request.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static int mca_io_ompio_request_free ( struct ompi_request_t **req)
3434
opal_list_remove_item (&mca_io_ompio_pending_requests, &ompio_req->req_item);
3535

3636
OBJ_RELEASE (*req);
37+
*req = MPI_REQUEST_NULL;
3738
return OMPI_SUCCESS;
3839
}
3940

0 commit comments

Comments
 (0)