Repository navigation
osdc/Objecter: assign op tid under the session lock - #71984
Merged
Merged
Conversation
Contributor
Author
|
jenkins test make check |
ronen-fr
force-pushed
the
wip-rf-tid
branch
from
September 24, 2026 09:22
67e1c0a to
fb21110
Compare
JonBailey1993
approved these changes
Sep 25, 2026
JonBailey1993
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the second commit, as the first approved in #71861 already. LGTM, had a look through the SplitOp path and looks good too.
adamemerson
approved these changes
Sep 25, 2026
adamemerson
left a comment
Contributor
There was a problem hiding this comment.
Looks Good to Me
Let's Get This Merged
ronen-fr
force-pushed
the
wip-rf-tid
branch
2 times, most recently
from
September 28, 2026 06:24
a6ba8a9 to
5f6ae9e
Compare
Contributor
Author
|
Merging based on my Teuthology tests |
... and in a single location only. With rados_osd_op_timeout set, _op_submit_with_budget() allocated the tid outside the session lock, letting a thread that drew a later tid reach _send_op() first. tid order has to match the order ops are sent, as _kick_requests() resends in tid order; this is caught by cls/test_cls_2pc_queue.sh once osd_debug_op_order is enabled. Record only a deadline at submit time, and register the timer event in _maybe_arm_op_timeout() once the tid has been assigned under the session lock. The deadline is absolute, so timeout semantics are unchanged. The early allocation came from 0635b13, which needed a tid before submit so C_CancelOp could be constructed complete; the separate constraint that forced arming before _send_op() has been compiled out since 18ff587. Fixes: https://tracker.ceph.com/issues/80745 Assisted-by: Claude Signed-off-by: Ronen Friedman <[email protected]>
ronen-fr
force-pushed
the
wip-rf-tid
branch
from
September 28, 2026 08:39
5f6ae9e to
eb7be6f
Compare
Contributor
Author
|
jenkins test make check |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
osdc/Objecter: assign op tid under the session lock
... and in a single location only.
With rados_osd_op_timeout set, _op_submit_with_budget() allocated the
tid outside the session lock, letting a thread that drew a later tid
reach _send_op() first. tid order has to match the order ops are sent,
as _kick_requests() resends in tid order; this is caught by
cls/test_cls_2pc_queue.sh once osd_debug_op_order is enabled.
Record only a deadline at submit time, and register the timer event in
_maybe_arm_op_timeout() once the tid has been assigned under the
session lock. The deadline is absolute, so timeout semantics are
unchanged. The early allocation came from 0635b13, which needed a
tid before submit so C_CancelOp could be constructed complete; the
separate constraint that forced arming before _send_op() has been
compiled out since 18ff587.
Fixes: https://tracker.ceph.com/issues/80745
Assisted-by: Claude
Signed-off-by: Ronen Friedman [email protected]
NOTE: the 'qa/rados' commit is already part of a different PR (here as it is a check against the new PR)