From: Matan Breizman Date: Tue, 29 Jul 2025 11:13:02 +0000 (+0000) Subject: crimson/os/seastore: SeaStore::start() into coroutines X-Git-Tag: v21.0.0~157^2~189^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c01ddbb0551270076043200db77fcb822ddf8810;p=ceph.git crimson/os/seastore: SeaStore::start() into coroutines Signed-off-by: Matan Breizman --- diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index 4ae4da2c92a1..8a6c4aa06043 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -223,16 +223,12 @@ seastar::future<> SeaStore::start() d_type == device_type_t::RANDOM_BLOCK_SSD); ceph_assert(root != ""); - return Device::make_device(root, d_type - ).then([this](DeviceRef device_obj) { - device = std::move(device_obj); - return device->start(); - }).then([this, is_test] { - ceph_assert(device); - return shard_stores.start(root, device.get(), is_test); - }).then([FNAME] { - INFO("done"); - }); + DeviceRef device_obj = co_await Device::make_device(root, d_type); + device = std::move(device_obj); + co_await device->start(); + ceph_assert(device); + co_await shard_stores.start(root, device.get(), is_test); + INFO("done"); } seastar::future<> SeaStore::test_start(DeviceRef device_obj)