From aa4b517d4cea6f0efbc1a22a704101e25f4c0567 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Mon, 20 Jan 2025 16:35:48 +0800 Subject: [PATCH] crimson/common/smp_helpers: crosscore to return an incremented in_seq 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 --- src/crimson/common/smp_helpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crimson/common/smp_helpers.h b/src/crimson/common/smp_helpers.h index 429c938229b..e82aaecf1c6 100644 --- a/src/crimson/common/smp_helpers.h +++ b/src/crimson/common/smp_helpers.h @@ -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 { -- 2.47.3