Repository navigation
rgw: Optional Yield Completion - #71367
Conversation
73e6a2d to
e98fcea
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
smanjara
left a comment
There was a problem hiding this comment.
looks good overall. some minor comments.
Logging functions accept null `DoutPrefixProvider*`s as no-ops. I had considered logging to `std::cerr` `dout_emergency` style, but that didn't seem consistent with the log priority for this message being 20. Signed-off-by: Adam C. Emerson <[email protected]>
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Right now when calling an asio operation your choices are to use `use_blocked` or to do a two-step where you deconstruct the `optional_yield` and have two calls. This is sub-optimal, and people are using `use_blocked`, so this is an alternative. Signed-off-by: Adam C. Emerson <[email protected]>
Replace with `rgw::oyc`. Signed-off-by: Adam C. Emerson <[email protected]>
Remove uses of `use_blocked` where we have a yield context, and where we aren't building an object containing an executor. Signed-off-by: Adam C. Emerson <[email protected]>
e98fcea to
8a80646
Compare
|
This PR has been added to main integration testing by anuchaithra started 2026-09-17-04:59. |
Testing completed and got approval from @ivancich, morr details in https://tracker.ceph.com/issues/80592). |
|
yay, very nice 👍 |
Introduce
rgw::maybe_yield, a completion adapter that takes aDoutPrefixProviderand ayield_context, yields if non-null and blocks otherwise.This is intended to replace use of
use_blockedfor calls that require aCompletionTokenwhen we have ayield_contextwhile not requiring a conditional at every call.Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.