Skip to content

UCP/FLUSH: return iteration count from ucp_worker_flush_progress - #11445

Merged
evgeny-leksikov merged 1 commit into
openucx:masterfrom
evgeny-leksikov:ft-split/01-flush-progress-fixes
Jun 9, 2026
Merged

evgeny-leksikov merged 1 commit into
openucx:masterfrom
evgeny-leksikov:ft-split/01-flush-progress-fixes

Conversation

@evgeny-leksikov

@evgeny-leksikov evgeny-leksikov commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

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

@evgeny-leksikov
evgeny-leksikov requested a review from gleon99 May 11, 2026 13:36
@evgeny-leksikov
evgeny-leksikov force-pushed the ft-split/01-flush-progress-fixes branch 2 times, most recently from 9019436 to e9f2cb6 Compare May 11, 2026 14:27
Comment thread src/ucp/rma/flush.c Resolved
Comment thread src/ucp/rma/flush.c Resolved
Comment thread src/ucp/rma/flush.c Resolved
@evgeny-leksikov
evgeny-leksikov force-pushed the ft-split/01-flush-progress-fixes branch from e9f2cb6 to 77f85bf Compare May 13, 2026 13:57
@evgeny-leksikov evgeny-leksikov changed the title UCP/FLUSH: fix worker flush completion when ep flush fails UCP/FLUSH: return iteration count from ucp_worker_flush_progress May 13, 2026
Comment thread src/ucp/rma/flush.c Resolved
Comment thread src/ucp/rma/flush.c Resolved
@gleon99

gleon99 commented Jun 7, 2026

Copy link
Copy Markdown
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
evgeny-leksikov force-pushed the ft-split/01-flush-progress-fixes branch from e6c0f9f to 4cd5b9a Compare June 8, 2026 11:41

@gleon99 gleon99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@evgeny-leksikov
evgeny-leksikov merged commit ca83f65 into openucx:master Jun 9, 2026
160 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants