Skip to content

osd: do not answer an op twice when a nested read goes to repair - #73177

Open
mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-nested-read-reply-once
Open

mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-nested-read-reply-once

Conversation

@mmgaggle

Copy link
Copy Markdown
Member

Summary

rep_repair_primary_object() answers EAGAIN to a failed read on a replica or, since #72292, on an EC shard. On the primary, it makes the op wait for the repair. A read in a CALL does not always return the EAGAIN, so execute_ctx() answered the op again.

Now the replica or the shard marks its reply as sent, and execute_ctx() does not answer an op that has its reply. On the primary, a waiting op drops the result of its run (parked_for_repair). A second failed read in the same run does not put the op in a second wait list.

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

Testing

This pull request adds no test of its own. With only this change on main 169a0fb, the EIO tests of test-erasure-eio.sh pass.

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)

rep_repair_primary_object() answers EAGAIN to a failed read on a
replica or on an EC shard, and on the primary makes the op wait for the
repair. A read in a CALL does not always return the EAGAIN, so
execute_ctx() answered the op again. Now the replica or the shard marks
its reply as sent, and execute_ctx() does not answer an op that has its
reply. On the primary, a waiting op drops the result of its run
(parked_for_repair).

Fixes: https://tracker.ceph.com/issues/82194
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Kyle Bader <[email protected]>
@mmgaggle
mmgaggle requested a review from a team as a code owner October 27, 2026 22:30
@github-actions github-actions Bot added the core label Oct 27, 2026
@mmgaggle mmgaggle mentioned this pull request Oct 27, 2026
5 of 14 tasks
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

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.

1 participant