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

use MPIDI_CH3U_Request_complete to complete user request.



In the request handler, we should use MPIDI_CH3U_Request_complete
to complete user request instead of directly setting it
to being completed. This is because when one operation is cut
into several packets, we must wait until all packets
to be completed to set the user request to be completed.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent ab8386e7
......@@ -27,8 +27,7 @@ int MPIDI_CH3_ReqHandler_ReqOpsComplete(MPIDI_VC_t * vc, MPID_Request * sreq, in
/* Complete user request and release ref of completion handler.
* Note that ch3 ref is released by later clean_up call. */
MPID_Request_set_completed(ureq);
MPID_Request_release(ureq);
MPIDI_CH3U_Request_complete(ureq);
MPIDI_CH3U_Request_complete(sreq);
*complete = TRUE;
......
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