Skip to content

common/async: wake async_cond waiters on their associated executor - #69314

Merged
cbodley merged 1 commit into
ceph:mainfrom
smanjara:wip-76725-test
Jun 25, 2026
Merged

cbodley merged 1 commit into
ceph:mainfrom
smanjara:wip-76725-test

Conversation

@smanjara

@smanjara smanjara commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

https://tracker.ceph.com/issues/76725

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@smanjara
smanjara requested a review from a team as a code owner June 5, 2026 19:42
@smanjara
smanjara marked this pull request as draft June 5, 2026 19:55
Comment thread src/common/async/async_cond.h Resolved
@mkogan1
mkogan1 self-requested a review June 7, 2026 11:38

@mkogan1 mkogan1 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.

works great, no ASAN log after 20 iterations of the test_olh_with_lc_deletion-v14.py repro script

@smanjara
smanjara marked this pull request as ready for review June 8, 2026 19:14

@cbodley cbodley 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.

rebased on top of #69253

that's merged btw

…ated executor

RGWDeleteMultiObj spawns child coroutines via spawn_throttle to delete
objects in parallel. each child coroutine carries the connection strand
as its associated executor, serializing concurrent operations on shared
state like the response formatter and ops_log_entries.

but in multisite env, concurrent deletions in the same bucket shard
contend on async_cond in RGWDataChangesLog::add_entry(). when notify()
fires, waiting coroutines resume on the raw io_context executor
instead of their connection strand, breaking the serialization that prevents data
races in send_partial_response()

any_completion_handler doesn't support post(). so post() to the
default executor and dispatch to the associated executor from there

Signed-off-by: Shilpa Jagannath <[email protected]>
@sseshasa

Copy link
Copy Markdown
Contributor

@cbodley
cbodley merged commit 1e020ca into ceph:main Jun 25, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants