Skip to content

Commit c113c37

Browse files
committed
ompi: pml ucx: fix persistant request initialization
Signed-off-by: Alex Mikheev <[email protected]>
1 parent 7240bee commit c113c37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ompi/mca/pml/ucx/pml_ucx_request.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ static void mca_pml_ucx_request_init_common(ompi_request_t* ompi_req,
137137
ompi_req->req_state = state;
138138
ompi_req->req_free = req_free;
139139
ompi_req->req_cancel = req_cancel;
140+
/* This field is used to attach persistant request to a temporary req.
141+
* Receive (ucp_tag_recv_nb) may call completion callback
142+
* before the field is set. If the field is not NULL then mca_pml_ucx_preq_completion()
143+
* will try to complete bogus persistant request.
144+
*/
145+
ompi_req->req_complete_cb_data = NULL;
140146
}
141147

142148
void mca_pml_ucx_request_init(void *request)

0 commit comments

Comments
 (0)