Skip to content

Commit

Permalink
Put a continuation back into the cont_incomplete_list if rechecking
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
  • Loading branch information
devreal committed Feb 6, 2024
1 parent 8f47c28 commit a02d677
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ompi/mpiext/continue/c/continuation.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ ompi_continue_enqueue_runnable(ompi_continuation_t *cont)
} else {
/* someone started the request before we took the lock, go back and check again
* this should be rare so we don't care about taking the lock again */
if (!req_volatile) {
/* put it back into the list of incomplete ops */
opal_list_append(&cont_req->cont_incomplete_list, &cont->super.super);
}
if (using_threads) { opal_atomic_unlock(&cont_req->cont_lock); }
goto recheck;
}
Expand Down

0 comments on commit a02d677

Please sign in to comment.