]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: drop thread_unsafe_counter for the operations
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 13 Oct 2023 08:05:52 +0000 (16:05 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 2 Nov 2023 07:29:08 +0000 (15:29 +0800)
They are supposed to be used cross-core.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/common/operation.h
src/crimson/osd/osd_operations/client_request.h

index 32e617ed5aee8efbb0a34c68341f0fd3be986aaf..bd3d79eec42b18aef52bf7dae70b004d78c394a1 100644 (file)
@@ -317,8 +317,7 @@ private:
  * an interface for registering ops in flight and dumping
  * diagnostic information.
  */
-class Operation : public boost::intrusive_ref_counter<
-  Operation, boost::thread_unsafe_counter> {
+class Operation : public boost::intrusive_ref_counter<Operation> {
  public:
   using id_t = uint64_t;
   static constexpr id_t NULL_ID = std::numeric_limits<uint64_t>::max();
index d534fd6ac4fae9fa2463ce6b0e26450d2fee6457..3c8c146a4f2f4a057a325b8778abcbd3a587e0c6 100644 (file)
@@ -87,8 +87,7 @@ public:
     CompletionEvent
   > tracking_events;
 
-  class instance_handle_t : public boost::intrusive_ref_counter<
-    instance_handle_t, boost::thread_unsafe_counter> {
+  class instance_handle_t : public boost::intrusive_ref_counter<instance_handle_t> {
   public:
     // intrusive_ptr because seastar::lw_shared_ptr includes a cpu debug check
     // that we will fail since the core on which we allocate the request may not