]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
spawn: use explicit strand executor
authorCasey Bodley <cbodley@redhat.com>
Mon, 1 Nov 2021 17:14:16 +0000 (13:14 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Nov 2021 14:37:09 +0000 (09:37 -0500)
commit9d9258e06b78bb47fd0156d9bd7bb00b52a726b0
tree9f1a0c5c6e1fe15a703fb33235fb06706c2e4cb0
parent44f4b083dea933f62cd76279593e3f1b3cd21f77
spawn: use explicit strand executor

the default spawn::yield_context uses the polymorphic boost::asio::executor
to support any executor type

rgw's beast frontend always uses the same executor type for these
coroutines, so we can use that type directly to avoid the overhead of
type erasure and virtual function calls

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/async/yield_context.h
src/rgw/rgw_aio.cc
src/rgw/rgw_aio_throttle.h
src/rgw/rgw_asio_frontend.cc
src/rgw/rgw_d3n_cacherequest.h
src/rgw/rgw_notify.cc
src/rgw/rgw_sync_checkpoint.cc
src/test/rgw/test_rgw_dmclock_scheduler.cc
src/test/rgw/test_rgw_reshard_wait.cc
src/test/rgw/test_rgw_throttle.cc