Skip to content

Commit

Permalink
Merge pull request #7174 from hzhou/2410_posix_prog
Browse files Browse the repository at this point in the history
ch4/posix: fix made_progress in MPIDI_POSIX_progress_send

Approved-by: Ken Raffenetti
  • Loading branch information
hzhou authored Oct 16, 2024
2 parents 3ce0e24 + 9afd5cc commit 5517088
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 5517088

Please sign in to comment.