Skip to content

tentacle: librados/asio: clear cancellation slot in associated executor - #69050

Merged
batrick merged 2 commits into
ceph:tentaclefrom
cbodley:wip-76754-tentacle
Jul 6, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
cbodley:wip-76754-tentacle

Conversation

@cbodley

@cbodley cbodley commented May 21, 2026

Copy link
Copy Markdown
Contributor

cbodley added 2 commits May 21, 2026 12:01
pass the unique_aio_completion_ptr into a wrapped completion handler to
extend its lifetime past the end of the AsyncOp::aio_dispatch() callback

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 27bbb96)
the librados callback function `AsyncOp::aio_dispatch()` runs on
Objecter's finisher strand executor, and dispatches the completion
handler to its associated executor

asio cancellation is not thread-safe, so should be synchronized on that
associated executor. move the call to `slot.clear()` from that librados
callback into the AsyncHandler wrapper so it doesn't run until we've
switched to the correct executor

because our `op_cancellation` handler depends on an `AioCompletion`
pointer, we have to clear the cancellation slot before that
`AioCompletion` lifetime ends

Fixes: https://tracker.ceph.com/issues/73475

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit d91bd72)
@cbodley
cbodley requested a review from a team as a code owner May 21, 2026 16:01
@cbodley cbodley added this to the tentacle milestone May 21, 2026
@github-actions github-actions Bot added core releng-audit-pass Release engineering: passed backport verification audit. labels May 21, 2026
@cbodley
cbodley requested a review from a team May 21, 2026 16:30
@anrao19

anrao19 commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details : https://tracker.ceph.com/issues/76985.
@cbodley , if no further testing is needed then this can be merged
Ack from RGW

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@batrick
batrick merged commit 2b0a96e into ceph:tentacle Jul 6, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED wip-bharath4-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants