Skip to content

Commit

Permalink
UCP/RNDV: Don't complete operation from CANCEL if RTS wasn't sent
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Jan 11, 2022
1 parent 12ab072 commit b11358f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ucp/tag/rndv.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ ucs_status_t ucp_tag_send_start_rndv(ucp_request_t *sreq)
void ucp_tag_rndv_cancel(ucp_request_t *sreq)
{
if (!(sreq->send.ep->flags & UCP_EP_FLAG_REMOTE_CONNECTED)) {
/* If RTS wasn't sent, it is still on the pending queue and the request
* will be completed from the purge callback */
if (sreq->flags & UCP_REQUEST_FLAG_RNDV_RTS_SENT) {
ucp_rndv_req_add_to_cancelled_list(sreq, UCS_ERR_CANCELED);
} else {
ucp_rndv_complete_send(sreq, UCS_ERR_CANCELED, "rndv_cancel");
}
} else {
sreq->send.uct.func = ucp_proto_progress_rndv_cancel;
Expand Down

0 comments on commit b11358f

Please sign in to comment.