Repository navigation
osdc/Objecter: re-point the op timeout at the new tid on resubmit - #72043
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
f35a785 to
2607e05
Compare
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]>
2607e05 to
5887d39
Compare
|
@adamemerson : the PR is now (as the previous two were merged) ready for formal review. Can you take a look? thanks |
|
jenkins test make check |
adamemerson
left a comment
There was a problem hiding this comment.
This is good and I approve of it.
|
This PR has been added to wip-bharath19-testing-20261002.123021-main. |
|
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. |
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