Commit aec01b39 authored by Xin Zhao's avatar Xin Zhao
Browse files

Bug-fix: correct the wrong judgement in RMA function.



Here we should check if the packet type is FOP_IMMED, if so,
we initialize the response packet to be FOP_RESP_IMMED. The
originally code wrongly check the packet flag instead of packet
type.
Signed-off-by: default avatarMin Si <msi@il.is.s.u-tokyo.ac.jp>
Signed-off-by: default avatarAntonio J. Pena <apenya@mcs.anl.gov>
parent 001cd724
......@@ -1342,7 +1342,7 @@ static inline int perform_fop_in_lock_queue(MPID_Win * win_ptr, MPIDI_RMA_Lock_e
MPID_Datatype_is_contig(fop_pkt->datatype, &is_contig);
if (fop_pkt->flags & MPIDI_CH3_PKT_FOP_IMMED) {
if (fop_pkt->type == MPIDI_CH3_PKT_FOP_IMMED) {
MPIDI_Pkt_init(fop_resp_pkt, MPIDI_CH3_PKT_FOP_RESP_IMMED);
}
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