Repository navigation
UCP/FLUSH: return iteration count from ucp_worker_flush_progress - #11445
Merged
evgeny-leksikov merged 1 commit intoJun 9, 2026
Merged
evgeny-leksikov merged 1 commit into
evgeny-leksikov merged 1 commit into
Conversation
8 tasks done
evgeny-leksikov
force-pushed
the
ft-split/01-flush-progress-fixes
branch
2 times, most recently
from
May 11, 2026 14:27
9019436 to
e9f2cb6
Compare
gleon99
reviewed
May 12, 2026
evgeny-leksikov
force-pushed
the
ft-split/01-flush-progress-fixes
branch
from
May 13, 2026 13:57
e9f2cb6 to
77f85bf
Compare
shasson5
reviewed
May 20, 2026
gleon99
reviewed
May 28, 2026
Contributor
|
@evgeny-leksikov see 1 unresolved thread. |
ucp_worker_flush_progress() previously always returned 0 from the worker progress callback, so the UCT progress engine could not tell whether the worker flush advanced state during an invocation. Track and return a per-call iteration count: one per processed EP, plus one per exit through the worker-flush-check fast path. Also clarify the per-EP flush error branch in the comment: an EP flush error is reported to the user via the EP error callback per the EP's error-handling mode and doesn't affect the worker flush, which continues scanning the remaining endpoints. The in-progress branch uses UCS_PTR_IS_PTR() instead of != NULL.
evgeny-leksikov
force-pushed
the
ft-split/01-flush-progress-fixes
branch
from
June 8, 2026 11:41
e6c0f9f to
4cd5b9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
return iteration count from ucp_worker_flush_progress
clarify the per-EP flush error branch in the comment
use UCS_PTR_IS_PTR() instead of != NULL.
Why?
The refactoring has being made in #11379 , but upstreamed as independent change