From: Yingxin Cheng Date: Wed, 27 Dec 2023 05:16:11 +0000 (+0800) Subject: crimson/os/alienstore: submit from the alien world concurrently X-Git-Tag: v19.3.0~241^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55039%2Fhead;p=ceph.git crimson/os/alienstore: submit from the alien world concurrently Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/alienstore/alien_log.cc b/src/crimson/os/alienstore/alien_log.cc index b371af897a2f..a0f5b03a5d39 100644 --- a/src/crimson/os/alienstore/alien_log.cc +++ b/src/crimson/os/alienstore/alien_log.cc @@ -17,6 +17,7 @@ CnLog::~CnLog() { } void CnLog::_flush(EntryVector& q, bool crash) { + // XXX: the waiting here will block the thread for an indeterministic peroid seastar::alien::submit_to(inst, shard, [&q] { for (auto& it : q) { crimson::get_logger(it.m_subsys).log( diff --git a/src/crimson/os/alienstore/alien_store.cc b/src/crimson/os/alienstore/alien_store.cc index 593716df3519..d53dacb18246 100644 --- a/src/crimson/os/alienstore/alien_store.cc +++ b/src/crimson/os/alienstore/alien_store.cc @@ -57,10 +57,11 @@ public: } void finish(int) final { - return seastar::alien::submit_to(alien, cpuid, [this] { - alien_done.set_value(); + std::ignore = seastar::alien::submit_to(alien, cpuid, + [&_alien_done=this->alien_done] { + _alien_done.set_value(); return seastar::make_ready_future<>(); - }).wait(); + }); } }; }