Repository navigation
Conversation
An op that ended without a yield dropped the last reference to its coroutine inside the coroutine, so its 128 KiB stack leaked. Now resume_coroutine() holds a reference across the resume. The op also kept handles into the freed stack, and a later sync read yielded on them. Now the coroutine clears them and waits for the op's async reads itself, also when an op before the CALL started them before any sync read. Fixes: https://tracker.ceph.com/issues/82192 Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Kyle Bader <[email protected]>
do_osd_ops() numbered the ops of a nested call, such as the reads of a CALL's method, from 0, as for the request. On an optimized EC pool the nested read of a CALL after a READ or a CHECKSUM ran the finisher of the request's op 0, and the method got no data. A nested call now keeps its finishers for the op that made it, and gives the caller's loop its op number back. Fixes: https://tracker.ceph.com/issues/82195 Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Kyle Bader <[email protected]>
5 of 14 tasks
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
5 of 14 tasks
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.
Summary
do_osd_ops()numbered the ops of a nested call, such as the reads of a CALL's method, from 0, as for the request. On an optimized EC pool, the nested read of a CALL after a READ or a CHECKSUM ran the finisher of the request's op 0. The method then got no data.A nested call now keeps its finishers for the op that made it, and gives the caller's loop its op number back.
This pull request is on top of #73174, because its test also needs that fix. Only the last commit is new here.
Fixes: https://tracker.ceph.com/issues/82195
Testing
The new librados test
LibRadosMiscECPP.ClassReadAfterAsyncReadinceph_test_rados_api_misc_ppruns a CHECKSUM and then a CALL that reads the object. These runs were on a vstart cluster with 3 OSDs, on main 169a0fb:jump_fcontext. The CALL's read yielded on the handles of a coroutine that already finished, which osd: free the stack of an EC coroutine op and keep its sync reads in it #73174 fixes.Checklist