]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common/smp_helpers: cleanup sharded_map_seq
authorMatan Breizman <mbreizma@redhat.com>
Mon, 23 Jun 2025 10:18:23 +0000 (10:18 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 25 Jun 2025 16:41:44 +0000 (19:41 +0300)
commitcaf6e5b2b2766b241f2cdf30139613e2497241ff
treeb2910d1f2e94dbbd268b20d9c80917e9f5095582
parenta86c2c01244c289e24e7bb7ab8d4f85c86927c1c
crimson/common/smp_helpers: cleanup sharded_map_seq

Let PGShardManager::invoke_on_each_shard_seq pass the local shard_services
instance instead of using an additional helper.

The downside of dropping the generic sharded_map_seq helper is that it is
able to support *any* (seastar::)sharded object. However, as shard_services
is the only user of it - directly using the local instance without the
helper seems easier to read.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 87d20855809d29d675b44f0f97a2ca859f5bf431)
src/crimson/admin/osd_admin.cc
src/crimson/common/smp_helpers.h
src/crimson/osd/pg_shard_manager.h