]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: Query osd op queue type from scheduler instead of config subsystem
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 21 Sep 2023 09:35:04 +0000 (15:05 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 13 Nov 2023 18:55:14 +0000 (00:25 +0530)
commitfadc0979aadafb19376248519dceb30b8c2ad4be
treebf446fcd54940859b7ff6141d5227eb7dd2d5cd2
parent96df279132473f459c692787609702542a32231f
osd/OSD: Query osd op queue type from scheduler instead of config subsystem

All OSD shards are guaranteed to use the same scheduler type. Therefore,
OSD::osd_op_queue_type() is used where applicable to determine the
scheduler type. This results in the appropriate setting of other config
options based on the randomly selected scheduler type in case the global
'osd_op_queue' config option is set to 'debug_random' (for e.g., in CI
tests).

Note: If 'osd_op_queue' is set to 'debug_random', the PG specific code
(PGPeering, PrimaryLogPG) would continue to use the existing mechanism of
querying the config option key (osd_op_queue) as before using get_val().

Fixes: https://tracker.ceph.com/issues/62171
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/osd/OSD.cc