Skip to content

osdc/Objecter: re-point the op timeout at the new tid on resubmit - #72043

Merged
ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-wart
Oct 14, 2026
Merged

ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-wart

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

The op timeout event identifies its target by tid, captured by value in
the timer callback. The resubmission paths in handle_osd_op_reply() -
the tiering redirect and the -EAGAIN redrive - clear op->tid so that the
op is re-sent with a fresh one. The already-armed event was left naming
the old tid, so when it fired, op_cancel() failed to find the op and
returned 0 silently: once redirected or redriven, an op no longer had a
deadline, and a hang there was unbounded.

Track the tid the event was armed for. When it no longer matches, cancel
the stale event and arm a new one. timeout_deadline is an absolute time
point, so this re-targets the event rather than restarting the clock -
the timeout stays per op, not per attempt.

Ops resubmitted without changing their tid are unaffected, and so is the
common path, which still arms exactly once.

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

@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

The op timeout event identifies its target by tid, captured by value in
the timer callback.  The resubmission paths in handle_osd_op_reply() -
the tiering redirect and the -EAGAIN redrive - clear op->tid so that the
op is re-sent with a fresh one.  The already-armed event was left naming
the old tid, so when it fired, op_cancel() failed to find the op and
returned 0 silently: once redirected or redriven, an op no longer had a
deadline, and a hang there was unbounded.

Track the tid the event was armed for.  When it no longer matches, cancel
the stale event and arm a new one.  timeout_deadline is an absolute time
point, so this re-targets the event rather than restarting the clock -
the timeout stays per op, not per attempt.

Ops resubmitted without changing their tid are unaffected, and so is the
common path, which still arms exactly once.

Fixes: https://tracker.ceph.com/issues/80754
Assisted-by: Claude
Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr

Copy link
Copy Markdown
Contributor Author

@adamemerson : the PR is now (as the previous two were merged) ready for formal review. Can you take a look? thanks

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check

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

This is good and I approve of it.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath19-testing-20261002.123021-main.

@adamemerson adamemerson removed their assignment Oct 2, 2026
@anrao19

anrao19 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-10-06-07:38.

@anrao19

anrao19 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-10-06-07:38.

pr testing completed and approved by @ivancich, more details in : https://tracker.ceph.com/issues/81453.
@ronen-fr , its an ack from RGW

@anrao19 anrao19 added TESTED RGW-TESTED testing from rgw completed and removed wip-anrao1-testing labels Oct 12, 2026
@lee-j-sanders

Copy link
Copy Markdown
Member

@ronen-fr
ronen-fr merged commit f2ae8f6 into ceph:main Oct 14, 2026
24 of 26 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.

6 participants