]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: update OSDService::queue_recovery_context to specify cost
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 2 Feb 2023 08:12:39 +0000 (13:42 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 8 May 2023 10:51:59 +0000 (16:21 +0530)
commita8832bbd240fb51c1357cd6fcf2e4b8379dcd571
treea77c5c4e1ada7f55a4229999a0ed67c46cfb8639
parent7dc30243551c5095a385df5d4ef2289cab0b4710
osd: update OSDService::queue_recovery_context to specify cost

Previously, we always queued this with cost osd_recovery_cost which
defaults to 20M. With mclock, this caused these items to be delayed
heavily. Instead, base the cost on the operation queued.

Fixes: https://tracker.ceph.com/issues/58606
Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/osd/ECBackend.cc
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PGBackend.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/osd/ReplicatedBackend.cc