Skip to content

Commit 323db65

Browse files
authored
Merge pull request #10547 from janjust/main
osc/ucx: trigger opal progress only if no progress is made inside flush
2 parents 5e9fde8 + 3109bf9 commit 323db65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/common/ucx/common_ucx_wpool.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ static inline int opal_common_ucx_wait_request_mt(ucs_status_ptr_t request, cons
292292
ctr--;
293293
} while (ctr > 0 && ret > 0 && status == UCS_INPROGRESS);
294294
opal_mutex_unlock(&winfo->mutex);
295-
opal_progress();
295+
if (!ctr) {
296+
opal_progress();
297+
}
296298
} while (status == UCS_INPROGRESS);
297299

298300
return OPAL_SUCCESS;

0 commit comments

Comments
 (0)