Skip to content

Commit a02d677

Browse files
committed
Put a continuation back into the cont_incomplete_list if rechecking
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 8f47c28 commit a02d677

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mpiext/continue/c/continuation.c

+4
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,10 @@ ompi_continue_enqueue_runnable(ompi_continuation_t *cont)
576576
} else {
577577
/* someone started the request before we took the lock, go back and check again
578578
* this should be rare so we don't care about taking the lock again */
579+
if (!req_volatile) {
580+
/* put it back into the list of incomplete ops */
581+
opal_list_append(&cont_req->cont_incomplete_list, &cont->super.super);
582+
}
579583
if (using_threads) { opal_atomic_unlock(&cont_req->cont_lock); }
580584
goto recheck;
581585
}

0 commit comments

Comments
 (0)