We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3829cac commit 09ec041Copy full SHA for 09ec041
ompi/request/req_test.c
@@ -35,7 +35,7 @@ int ompi_request_default_test(ompi_request_t ** rptr,
35
#if OPAL_ENABLE_PROGRESS_THREADS == 0
36
int do_it_once = 0;
37
38
- recheck_request_status:
+recheck_request_status:
39
#endif
40
opal_atomic_mb();
41
if( request->req_state == OMPI_REQUEST_INACTIVE ) {
@@ -86,9 +86,10 @@ int ompi_request_default_test(ompi_request_t ** rptr,
86
* If we run the opal_progress then check the status of the request before
87
* leaving. We will call the opal_progress only once per call.
88
*/
89
- opal_progress();
90
- do_it_once++;
91
- goto recheck_request_status;
+ ++do_it_once;
+ if (0 != opal_progress()) {
+ goto recheck_request_status;
92
+ }
93
}
94
95
*completed = false;
0 commit comments