From a6852a08705bab7f59bc5f45439b3b2b2925e3bc Mon Sep 17 00:00:00 2001 From: dmitrygx Date: Fri, 1 May 2020 09:38:35 +0300 Subject: [PATCH] UCP/TAG: Release RNDV request in case of error --- src/ucp/tag/rndv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ucp/tag/rndv.c b/src/ucp/tag/rndv.c index eb5a12e41d2..96449a150ed 100644 --- a/src/ucp/tag/rndv.c +++ b/src/ucp/tag/rndv.c @@ -437,7 +437,11 @@ static void ucp_rndv_complete_rma_get_zcopy(ucp_request_t *rndv_req, if (status == UCS_OK) { ucp_rndv_req_send_ats(rndv_req, rreq, rndv_req->send.rndv_get.remote_request, UCS_OK); + } else { + /* if completing RNDV with the error, just release RNDV request */ + ucp_request_put(rndv_req); } + ucp_rndv_zcopy_recv_req_complete(rreq, status); }