Repository navigation
common/async: remove null_yield support for spawn_throttle - #64624
Conversation
i guess |
|
i think qa looks ok in https://pulpito.ceph.com/cbodley-2025-07-23_18:05:36-rgw-wip-70965-distro-default-smithi/, but holy valgrind |
Feel free to merge. I had an idea for the valgrind I'm going to try out. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
rebasing over conflicts from #63348 |
if called with null_yield, RGWDeleteMultiObj::execute() creates an io_context and spawns a coroutine to run on it. this ensures that spawn_throttle always gets a valid yield context Signed-off-by: Casey Bodley <[email protected]>
init_watch() and finalize_watch() use spawn_throttle for concurrent operations, so need to spawn a parent coroutine unless init_watch() already has one Signed-off-by: Casey Bodley <[email protected]>
max_concurrent_for_each() is a thin wrapper around spawn_throttle. remove its support for null_yield too Signed-off-by: Casey Bodley <[email protected]>
null_yield support was provided by sync_spawn_throttle_impl, which itself stores the boost::asio::io_context that it runs on. however, valgrind reports issues with object lifetimes each spawn_throttle_handler holds a reference count on the spawn_throttle_impl to prevent it from going away while coroutines are in flight. on completion, this spawn_throttle_handler gets invoked on its associated executor. this invocation may drop the last reference to spawn_throttle_impl while that associated executor is still trying to use the io_context that was destroyed with sync_spawn_throttle_impl finding no good way for a custom executor to preserve the lifetime of the spawn_throttle_impl, we instead remove support for this flawed design. the null_yield callers must first spawn a parent coroutine before using spawn_throttle Fixes: https://tracker.ceph.com/issues/70965 Signed-off-by: Casey Bodley <[email protected]>
spawn_throttle_impl was a virtual base class for the sync_ and async_ variants. with the sync variant removed, combine the classes into one and remove the use of virtual functions Signed-off-by: Casey Bodley <[email protected]>
|
|
jenkins test make check arm64 |
|
|
jenkins test make check arm64 |
reported in https://tracker.ceph.com/issues/72325 |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
|
jenkins test make check arm64 |
|
projectroot.src.test.rbd_mirror.unittest_rbd_mirror |
|
jenkins test make check arm64 |
|
jenkins pls
|
|
jenkins test make check arm64 |
|
|
jenkins test make check arm64 |
null_yield support was provided by sync_spawn_throttle_impl, which itself stores the boost::asio::io_context that it runs on. however, valgrind reports issues with object lifetimes
each spawn_throttle_handler holds a reference count on the spawn_throttle_impl to prevent it from going away while coroutines are in flight. on completion, this spawn_throttle_handler gets invoked on its associated executor. this invocation may drop the last reference to spawn_throttle_impl while that associated executor is still trying to use the io_context that was destroyed with sync_spawn_throttle_impl
finding no good way for a custom executor to preserve the lifetime of the spawn_throttle_impl, we instead remove support for this flawed design. the null_yield callers must first spawn a parent coroutine before using spawn_throttle
Fixes: https://tracker.ceph.com/issues/70965
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 Definition