Repository navigation
Conversation
cbodley
force-pushed
the
wip-asio-no-ts-executors
branch
4 times, most recently
from
February 10, 2023 17:31
4e05e56 to
e1f81cb
Compare
cbodley
force-pushed
the
wip-asio-no-ts-executors
branch
from
February 10, 2023 19:55
e1f81cb to
ecb2c94
Compare
cbodley
force-pushed
the
wip-asio-no-ts-executors
branch
from
February 10, 2023 20:29
ecb2c94 to
2f13b02
Compare
Contributor
Author
|
by adding the cmake commit last, i was able to verify that all of the code changes compile in both cases: with BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT, and with BOOST_ASIO_NO_TS_EXECUTORS note that there's a clang error on wip-coro-after-reef, fixed by commit common/async: add co_waiter::op_cancellation ctor for clang from #50005 |
cbodley
marked this pull request as ready for review
February 10, 2023 22:25
adamemerson
approved these changes
Feb 13, 2023
cbodley
force-pushed
the
wip-asio-no-ts-executors
branch
from
February 14, 2023 16:35
2f13b02 to
3689e1b
Compare
Contributor
Author
these changes merged to ceph/spawn.git, so i added a commit to pull up the spawn submodule. i also verified that it compiles both with/without the final cmake commit |
Needed to fix coroutine detection under Clang TODO: update boost package sha1 in install-deps.sh when we have packages uploaded Signed-off-by: Adam C. Emerson <[email protected]>
Previously we had versions of all the calls that took an int64_t and optional key and namespace. This didn't really offer much benefit and doubled the maintenance burden for changing anything. As such just make the IOContext constructor non-explicit, and make all its mutators return the same IOContext so people can supply them builder-style if they want to. Also don't wrap things in 'optional' when the underlying library doesn't. The callers just end up having to wrap and unwrap with value-or repeatedly. Signed-off-by: Adam C. Emerson <[email protected]>
This form of completion handling is compatible with C++20 Completions and generally more flexible stuff. Signed-off-by: Adam C. Emerson <[email protected]>
The lock will continue to be held over the 'dispatch' with C++20 coroutines. Signed-off-by: Adam C. Emerson <[email protected]>
Apparently in some cases we were using references to objects on the caller stack that happen to no longer exist if the caller's stack goes away. C++20 Coroutines tickled this bug. Signed-off-by: Adam C. Emerson <[email protected]>
Use `min` rather than `max` when deciding how much we need to read in `read()`. Signed-off-by: Adam C. Emerson <[email protected]>
Just as a demonstration to see how well they work and how to put things together with them. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
In the `destroy_` functions of `CompletionImpl` we were getting the associated allocator after moving out of the handler into the call to `bind_and_forward`. This was triggering a crash on null-pointer access in operations made with `co_composed`. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
If our decoder function returns a tuple of multiple values, flatten it so our signature is `void(error_code, T, U, V)` not `void(error_code, std::tuple<T, U, V>)`. Signed-off-by: Adam C. Emerson <[email protected]>
And return them to the client by setting the error cod and result in the vector and returning an error from the operation as a whole. Signed-off-by: Adam C. Emerson <[email protected]>
Since they can be reported now, report them Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
adamemerson
force-pushed
the
wip-coro-after-reef
branch
from
February 14, 2023 19:06
27c3c39 to
9ceab5f
Compare
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
this define was added for backward compatibility before boost 1.74 https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/std_executors.html Signed-off-by: Casey Bodley <[email protected]>
cbodley
force-pushed
the
wip-asio-no-ts-executors
branch
from
February 15, 2023 20:12
3689e1b to
5af6a41
Compare
adamemerson
force-pushed
the
wip-coro-after-reef
branch
from
February 28, 2023 20:02
9ceab5f to
88c6d6d
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Contributor
Author
|
merged into #49737 |
This was referenced Jul 10, 2023
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.
note that this PR targets the wip-coro-after-reef feature branch
this BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT define was added for backward compatibility before boost 1.74:
https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/std_executors.html
this PR replaces all the stuff that depended on ts executors, and adds
BOOST_ASIO_NO_TS_EXECUTORSto verify thatthis also requires changes to the spawn submodule pending in cbodley/spawn#8
as future work, we can use boost 1.81's type-erased
any_completion_handlerto replaceceph::async::CompletionShow available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows