]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/operation: cleanup, drop the unused PipelineExitBarrierI::cancel()
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 22 Aug 2023 03:23:47 +0000 (11:23 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 2 Nov 2023 07:29:07 +0000 (15:29 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/common/operation.h

index 6df2c99fd2a0695dac0044f2369f9151eaede41f..b0ac033a8cd302d63f4dfcccbd0098a1c1153c59 100644 (file)
@@ -478,13 +478,10 @@ public:
   /// Waits for exit barrier
   virtual std::optional<seastar::future<>> wait() = 0;
 
-  /// Releases pipeline stage, can only be called after wait
+  /// Releases pipeline resources, after or without waiting
   virtual void exit() = 0;
 
-  /// Releases pipeline resources without waiting on barrier
-  virtual void cancel() = 0;
-
-  /// Must ensure that resources are released, likely by calling cancel()
+  /// Must ensure that resources are released, likely by calling exit()
   virtual ~PipelineExitBarrierI() {}
 };
 
@@ -606,12 +603,8 @@ class OrderedExclusivePhaseT : public PipelineStageIT<T> {
       }
     }
 
-    void cancel() final {
-      exit();
-    }
-
     ~ExitBarrier() final {
-      cancel();
+      exit();
     }
   };
 
@@ -717,12 +710,8 @@ private:
       }
     }
 
-    void cancel() final {
-      exit();
-    }
-
     ~ExitBarrier() final {
-      cancel();
+      exit();
     }
   };
 
@@ -756,8 +745,6 @@ class UnorderedStageT : public PipelineStageIT<T> {
 
     void exit() final {}
 
-    void cancel() final {}
-
     ~ExitBarrier() final {}
   };