Skip to content

Commit

Permalink
UCP/TAG/RNDV: Complete send operation only if RTS wasn't sent
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Dec 21, 2021
1 parent e4b9d9e commit 5c062a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ucp/tag/rndv.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +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 (sreq->flags & UCP_REQUEST_FLAG_RNDV_RTS_SENT) {
if (!(sreq->flags & UCP_REQUEST_FLAG_RNDV_RTS_SENT)) {
ucp_rndv_complete_send(sreq, UCS_ERR_CANCELED, "rndv_cancel");
} else {
ucp_rndv_req_add_to_cancelled_list(sreq, UCS_ERR_CANCELED);
}
} else {
sreq->send.uct.func = ucp_proto_progress_rndv_cancel;
Expand Down

0 comments on commit 5c062a1

Please sign in to comment.