]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: acquire throttle when scanning replica/primary for backfill 68386/head
authorKefu Chai <k.chai@proxmox.com>
Sun, 29 Mar 2026 05:47:47 +0000 (13:47 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 7 May 2026 09:53:22 +0000 (17:53 +0800)
commit115cb41e74373c437dbb68fa66dbcf87cf3d1950
treedeefd412682ee7421214425d0d4c8564c7e82168
parent8bb89be9023669960809efe7dfbb9a9a5e384f28
crimson/osd: acquire throttle when scanning replica/primary for backfill

The backfill state machine called budget_available() before deciding to
scan, but request_primary_scan() and request_replica_scan() never
actually acquired the throttle slot.  This meant scans could proceed
without any resource reservation, defeating the QoS intent of the
throttler introduced in 791772f1c0.

In this change, we fix this by acquiring the throttle before initiating
each scan.

Fixes: https://tracker.ceph.com/issues/70808
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/osd/pg_recovery.cc
src/crimson/osd/pg_recovery.h