]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/smp_helpers: crosscore to return an incremented in_seq
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 20 Jan 2025 08:35:48 +0000 (16:35 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 21 Jan 2025 03:33:03 +0000 (11:33 +0800)
See in_control_t::proceed_or_wait(), should be more friendly to print
the next in_seq to wait or proceed.

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

index 429c938229bcc96c17d6db82719ea7ceb09ca447..e82aaecf1c6f62350efb1d55f856275e308c82ce 100644 (file)
@@ -146,15 +146,15 @@ public:
    */
 
   seq_t get_in_seq() const requires IS_ONE {
-    return in_controls.seq;
+    return in_controls.seq + 1;
   }
 
   seq_t get_in_seq() const requires IS_ONE_N {
-    return in_controls[seastar::this_shard_id()].seq;
+    return in_controls[seastar::this_shard_id()].seq + 1;
   }
 
   seq_t get_in_seq(core_id_t source_core) const requires IS_N_ONE {
-    return in_controls[source_core].seq;
+    return in_controls[source_core].seq + 1;
   }
 
   bool proceed_or_wait(seq_t seq) requires IS_ONE {