Skip to content

Commit 8249d41

Browse files
committed
Don't execute a continuation immediately if the CR is inactive
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 688571f commit 8249d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpiext/continue/c/continuation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ int ompi_continue_attach(
863863
last_num_active = OPAL_THREAD_ADD_FETCH32(&cont->cont_num_active, -num_complete);
864864
}
865865
if (0 == last_num_active) {
866-
if (cont_req->cont_enqueue_complete) {
866+
if (cont_req->cont_enqueue_complete || OMPI_REQUEST_INACTIVE == cont_req->super.req_state) {
867867
/* enqueue for later processing */
868868
ompi_continue_enqueue_runnable(cont);
869869
} else {

0 commit comments

Comments
 (0)