]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: enable PGShardMapping access from all cores
authorchunmei <chunmei.liu@intel.com>
Fri, 31 Mar 2023 02:49:33 +0000 (02:49 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 17 Oct 2023 16:18:11 +0000 (16:18 +0000)
commitb3aa4cfdb760aa680cf484b7f7ec9ab9ce09d162
tree54bb325d2d852267b54f732bd7984a94576dfdf6
parentdb3a5c51ad2651f1283e72736deb51dca1f450c5
crimson/osd: enable PGShardMapping access from all cores

Previously, all accesses (incuding loookups) had to occur on core 0.  Now that
we want to be able to dispatch from all cores, we need PGShardManager to be
accessible from all cores.  To that end, we now proxy updates to core 0, but maintain
local copies of the map so that cores can perform local lookups.

Signed-off-by: chunmei <chunmei.liu@intel.com>
(cherry picked from commit a3052969bfcfd9329b2baf7883765642d09ff038)
src/crimson/osd/osd.cc
src/crimson/osd/osd.h
src/crimson/osd/pg_map.h
src/crimson/osd/pg_shard_manager.cc
src/crimson/osd/pg_shard_manager.h
src/crimson/osd/shard_services.h