]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/.../osd_operation*: add wait_pg_ready and get_obc
authorSamuel Just <sjust@redhat.com>
Wed, 27 Nov 2024 01:49:08 +0000 (01:49 +0000)
committerSamuel Just <sjust@redhat.com>
Fri, 13 Dec 2024 20:32:26 +0000 (12:32 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/osd_operation.h
src/crimson/osd/osd_operation_external_tracking.h

index 82fb816ab03852d201c2c46212d32c103847a66f..43765815bddd6154f96fae78fdb7dd49028773dc 100644 (file)
@@ -68,6 +68,12 @@ struct CommonPGPipeline {
   struct WaitRepop : OrderedConcurrentPhaseT<WaitRepop> {
     static constexpr auto type_name = "ClientRequest::PGPipeline::wait_repop";
   } wait_repop;
+  struct WaitPGReady : OrderedConcurrentPhaseT<WaitPGReady> {
+    static constexpr auto type_name = "CommonPGPipeline:::wait_pg_ready";
+  } wait_pg_ready;
+  struct GetOBC : OrderedExclusivePhaseT<GetOBC> {
+    static constexpr auto type_name = "CommonPGPipeline:::get_obc";
+  } get_obc;
 };
 
 struct CommonOBCPipeline {
index 6956f5661c6546aaf1854817c3c657e9cc201ff5..dec2e89fc2230ad016f5e88e534389d207885df9 100644 (file)
@@ -25,6 +25,9 @@ struct LttngBackend
     ConnectionPipeline::AwaitMap::BlockingEvent::Backend,
     ConnectionPipeline::GetPGMapping::BlockingEvent::Backend,
     PerShardPipeline::CreateOrWaitPG::BlockingEvent::Backend,
+    CommonPGPipeline::WaitPGReady::BlockingEvent::Backend,
+    CommonPGPipeline::WaitPGReady::BlockingEvent::ExitBarrierEvent::Backend,
+    CommonPGPipeline::GetOBC::BlockingEvent::Backend,
     OSD_OSDMapGate::OSDMapBlocker::BlockingEvent::Backend,
     PGMap::PGCreationBlockingEvent::Backend,
     ClientRequest::PGPipeline::AwaitMap::BlockingEvent::Backend,
@@ -76,6 +79,20 @@ struct LttngBackend
               const PerShardPipeline::CreateOrWaitPG& blocker) override {
   }
 
+  void handle(CommonPGPipeline::WaitPGReady::BlockingEvent& ev,
+              const Operation& op,
+              const CommonPGPipeline::WaitPGReady& blocker) override {
+  }
+
+  void handle(CommonPGPipeline::WaitPGReady::BlockingEvent::ExitBarrierEvent& ev,
+              const Operation& op) override {
+  }
+
+  void handle(CommonPGPipeline::GetOBC::BlockingEvent& ev,
+              const Operation& op,
+              const CommonPGPipeline::GetOBC& blocker) override {
+  }
+
   void handle(PGMap::PGCreationBlockingEvent&,
               const Operation&,
               const PGMap::PGCreationBlocker&) override {
@@ -180,6 +197,9 @@ struct HistoricBackend
     ConnectionPipeline::AwaitMap::BlockingEvent::Backend,
     ConnectionPipeline::GetPGMapping::BlockingEvent::Backend,
     PerShardPipeline::CreateOrWaitPG::BlockingEvent::Backend,
+    CommonPGPipeline::WaitPGReady::BlockingEvent::Backend,
+    CommonPGPipeline::WaitPGReady::BlockingEvent::ExitBarrierEvent::Backend,
+    CommonPGPipeline::GetOBC::BlockingEvent::Backend,
     OSD_OSDMapGate::OSDMapBlocker::BlockingEvent::Backend,
     PGMap::PGCreationBlockingEvent::Backend,
     ClientRequest::PGPipeline::AwaitMap::BlockingEvent::Backend,
@@ -231,6 +251,20 @@ struct HistoricBackend
               const PerShardPipeline::CreateOrWaitPG& blocker) override {
   }
 
+  void handle(CommonPGPipeline::WaitPGReady::BlockingEvent& ev,
+              const Operation& op,
+              const CommonPGPipeline::WaitPGReady& blocker) override {
+  }
+
+  void handle(CommonPGPipeline::WaitPGReady::BlockingEvent::ExitBarrierEvent& ev,
+              const Operation& op) override {
+  }
+
+  void handle(CommonPGPipeline::GetOBC::BlockingEvent& ev,
+              const Operation& op,
+              const CommonPGPipeline::GetOBC& blocker) override {
+  }
+
   void handle(PGMap::PGCreationBlockingEvent&,
               const Operation&,
               const PGMap::PGCreationBlocker&) override {