]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: migrate off deprecated seastar::smp::count and all_cpus() 69758/head
authorKefu Chai <k.chai@proxmox.com>
Fri, 26 Jun 2026 11:35:15 +0000 (19:35 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 28 Jul 2026 08:07:19 +0000 (16:07 +0800)
commit31ed48ac8f2336b85d567a1ddcdc4f2da6119f7b
tree93bfedb36f40277cce6cb0c35b9b2380633dcbff
parentdcbe48ff0bee47b9c06b506bc4be3e7ffdb6f683
crimson: migrate off deprecated seastar::smp::count and all_cpus()

The updated seastar deprecates the global smp::count and smp::all_cpus() in
favour of the per-instance smp::shard_count() and smp::all_shards(). Under the
CI -Werror build these deprecation warnings are fatal.

Replace the uses with the reactor-local free functions
seastar::this_smp_shard_count() and seastar::this_smp_all_shards(), which read
the current smp instance's shard count and shard-id range. crimson runs a
single smp instance and every migrated site executes on a reactor thread (the
alienstore worker threads do not touch these), so the behaviour is unchanged.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
25 files changed:
src/crimson/common/config_proxy.h
src/crimson/common/gated.h
src/crimson/common/smp_helpers.h
src/crimson/os/alienstore/alien_store.cc
src/crimson/os/alienstore/thread_pool.cc
src/crimson/os/cyanstore/cyan_store.cc
src/crimson/os/futurized_store.h
src/crimson/os/seastore/device.cc
src/crimson/os/seastore/device.h
src/crimson/os/seastore/random_block_manager/nvme_block_device.cc
src/crimson/os/seastore/random_block_manager/rbm_device.cc
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/segment_manager/block.cc
src/crimson/os/seastore/segment_manager/zbd.cc
src/crimson/osd/osd.cc
src/crimson/osd/osd_operation.cc
src/crimson/osd/pg.cc
src/crimson/osd/pg_map.cc
src/crimson/osd/pg_map.h
src/crimson/osd/pg_shard_manager.h
src/crimson/tools/perf_crimson_msgr.cc
src/crimson/tools/store_bench/store-bench.cc
src/test/crimson/seastore/nvmedevice/test_nvmedevice.cc
src/test/crimson/test_buffer.cc
src/test/crimson/test_messenger.cc