]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Add missing tracked mclock config options and do some clean-up. 41125/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 22 Apr 2021 11:40:38 +0000 (17:10 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 3 May 2021 08:55:43 +0000 (14:25 +0530)
commit21ccd6bf363fa62644d3037484e3991153ef01fd
tree44ec4176341f946b7159a532d50ad61943ba32dc
parentff8c6135010957abf043c12ff05a2023673eb747
osd: Add missing tracked mclock config options and do some clean-up.

Add the missing tracked mclock config options related to the background
best effort clients of mclock scheduler within handle_conf_change().

The method mClockScheduler::set_global_recovery_options() doesn't serve
the purpose fully as in addition to overriding the "osd_max_backfills"
config option, the local and remote Async reserver objects have to be
updated accordingly which is not possible currently from within the
mClockScheduler. Therefore, rather than complicate the mClockScheduler
code to achieve this, a better option is to override the recovery options
during OSD init (and handle config changes) which the previous commit
introduced.  Therefore, this method is removed.

Fixes: https://tracker.ceph.com/issues/50501
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit 84fe087491397edbaf508a1011115a73ebe1be21)
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h