]> 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>
Fri, 3 Feb 2023 12:17:38 +0000 (17:47 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 8 May 2023 09:16:25 +0000 (14:46 +0530)
commitc30f2729b4815e56229c711cf0789cb704aec5dd
tree2a045cb8e2019d16de1671c00518e6905f638ec1
parenteb57e4b53a33070775ca91b3fe242be36d426e74
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