Skip to content

Commit

Permalink
ch4/posix: fix made_progress in MPIDI_POSIX_progress_send
Browse files Browse the repository at this point in the history
Only update made_progress when sending the deferred operation is
successful.
  • Loading branch information
hzhou committed Oct 16, 2024
1 parent 3ce0e24 commit 9afd5cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mpid/ch4/shm/posix/posix_progress.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_POSIX_progress_send(int vci, int *made_progre
MPIR_FUNC_ENTER;

if (MPIDI_POSIX_global.per_vci[vci].postponed_queue) {
*made_progress = 1;
/* Drain postponed queue */
curr_sreq_hdr = MPIDI_POSIX_global.per_vci[vci].postponed_queue;

Expand Down Expand Up @@ -129,6 +128,9 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_POSIX_progress_send(int vci, int *made_progre
MPIR_Assert(0);
}

if (curr_sreq_hdr != MPIDI_POSIX_global.per_vci[vci].postponed_queue) {
*made_progress = 1;
}
}

MPIR_FUNC_EXIT;
Expand Down

0 comments on commit 9afd5cc

Please sign in to comment.