]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/main: enable multicore client msgr
authorMatan Breizman <mbreizma@redhat.com>
Mon, 19 Feb 2024 12:22:16 +0000 (12:22 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 6 May 2024 12:10:49 +0000 (15:10 +0300)
Taken from: f78e99c05943ea336a3fe2cc1568fea81e6a9855

Co-authored-by: Yingxin Cheng <yingxin.cheng@intel.com>
Co-authored-by: Chunmei Liu <chunmei.liu@intel.com>
Co-authored-by: Xinyu Huang <xinyu.huang@intel.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 68400ff5450db1fd2c582ef016c9859829dbdf89)

src/crimson/osd/main.cc

index 1e817415d03b9d25930b704cf3ae3314467e8316..6a569702deba861a08f34d02994ee7552a59492d 100644 (file)
@@ -186,8 +186,13 @@ int main(int argc, const char* argv[])
           const auto nonce = crimson::osd::get_nonce();
           crimson::net::MessengerRef cluster_msgr, client_msgr;
           crimson::net::MessengerRef hb_front_msgr, hb_back_msgr;
+          for (auto [msgr, name] : {make_pair(std::ref(client_msgr), "client"s)}) {
+            msgr = crimson::net::Messenger::create(entity_name_t::OSD(whoami),
+                                                   name,
+                                                   nonce,
+                                                   false);
+          }
           for (auto [msgr, name] : {make_pair(std::ref(cluster_msgr), "cluster"s),
-                                    make_pair(std::ref(client_msgr), "client"s),
                                     make_pair(std::ref(hb_front_msgr), "hb_front"s),
                                     make_pair(std::ref(hb_back_msgr), "hb_back"s)}) {
             msgr = crimson::net::Messenger::create(entity_name_t::OSD(whoami),