]> git.apps.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>
Thu, 27 Apr 2023 13:11:06 +0000 (18:41 +0530)
commit46aeb1a99e9a9803826d06e9e650dab62d48b18e
treefe24456dc26eeb7ff50d69fe06b31dfd63891208
parentda78c375432fe626b33d05a6063a0ef144819b15
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