Skip to content

Commit

Permalink
UCP/RNDV: Fix releasing of local request ID when switching to RNDV AM
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Jan 12, 2021
1 parent a212a09 commit 488bfde
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ucp/rndv/rndv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,9 @@ UCS_PROFILE_FUNC(ucs_status_t, ucp_rndv_rtr_handler,
ucs_status_t status;
int is_pipeline_rndv;

ucs_assertv(rndv_rtr_hdr->sreq_id == sreq->send.msg_proto.sreq_id,
"received local sreq_id 0x%"PRIx64" is not equal to expected sreq_id"
" 0x%"PRIx64, rndv_rtr_hdr->sreq_id, sreq->send.msg_proto.sreq_id);
ucp_trace_req(sreq, "received rtr address 0x%"PRIx64" remote rreq_id"
"0x%"PRIx64, rndv_rtr_hdr->address, rndv_rtr_hdr->rreq_id);
UCS_PROFILE_REQUEST_EVENT(sreq, "rndv_rtr_recv", 0);
Expand Down Expand Up @@ -1814,9 +1817,8 @@ UCS_PROFILE_FUNC(ucs_status_t, ucp_rndv_rtr_handler,
}

out_send:
/* if it not a PUT pipeline protocol, delete the send request ID */
ucp_worker_del_request_id(worker, sreq,
sreq->send.msg_proto.sreq_id);
/* if it is not a PUT pipeline protocol, delete the send request ID */
ucp_worker_del_request_id(worker, sreq, rndv_rtr_hdr->sreq_id);
ucp_request_send(sreq, 0);
return UCS_OK;
}
Expand Down

0 comments on commit 488bfde

Please sign in to comment.