Commit 6ee07af4 authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Simplify code: use MPIDI_CH3U_Request_complete to complete user request.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 6394c667
......@@ -1298,8 +1298,7 @@ static inline int set_user_req_after_issuing_op(MPIDI_RMA_Op_t * op)
* and release ch3 ref. */
/* Complete user request and release the ch3 ref */
MPID_Request_set_completed(op->ureq);
MPID_Request_release(op->ureq);
MPIDI_CH3U_Request_complete(op->ureq);
}
else {
/* Sending is not completed immediately. */
......@@ -1344,8 +1343,7 @@ static inline int set_user_req_after_issuing_op(MPIDI_RMA_Op_t * op)
else {
/* all requests are completed */
/* Complete user request and release ch3 ref */
MPID_Request_set_completed(op->ureq);
MPID_Request_release(op->ureq);
MPIDI_CH3U_Request_complete(op->ureq);
op->ureq = NULL;
}
}
......
......@@ -111,8 +111,7 @@ int MPIDI_CH3I_Put(const void *origin_addr, int origin_count, MPI_Datatype
if (ureq) {
/* Complete user request and release the ch3 ref */
MPID_Request_set_completed(ureq);
MPID_Request_release(ureq);
MPIDI_CH3U_Request_complete(ureq);
}
}
else {
......@@ -306,8 +305,7 @@ int MPIDI_CH3I_Get(void *origin_addr, int origin_count, MPI_Datatype
if (ureq) {
/* Complete user request and release the ch3 ref */
MPID_Request_set_completed(ureq);
MPID_Request_release(ureq);
MPIDI_CH3U_Request_complete(ureq);
}
}
else {
......@@ -490,8 +488,7 @@ int MPIDI_CH3I_Accumulate(const void *origin_addr, int origin_count, MPI_Datatyp
if (ureq) {
/* Complete user request and release the ch3 ref */
MPID_Request_set_completed(ureq);
MPID_Request_release(ureq);
MPIDI_CH3U_Request_complete(ureq);
}
}
else {
......@@ -722,8 +719,7 @@ int MPIDI_CH3I_Get_accumulate(const void *origin_addr, int origin_count,
if (ureq) {
/* Complete user request and release the ch3 ref */
MPID_Request_set_completed(ureq);
MPID_Request_release(ureq);
MPIDI_CH3U_Request_complete(ureq);
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment