osd: Yield between peering calcs started from continue_pg() too #200

Merged
vitalif merged 1 commits from koolkhel/vitastor:osd-peering-yield-repeer into master 2026-11-29 13:52:22 +03:00

1 Commits

Author SHA1 Message Date
cd10b9adc2 osd: Yield between peering calcs started from continue_pg() too
Only handle_peers() armed the yield timer. continue_pg_peering() also
runs from continue_pg(), and a re-peer keeps the lists of the peers
that stay, so a PG waiting for its calc gets calculated at once: when
the /osd/state of a connected peer disappears, repeer_pgs() calculates
every such PG back to back in one pass.

Arm the timer in continue_pg_peering() and skip the calc while it is
armed; handle_peers() takes the PG when the timer fires.
2026-11-28 13:58:55 +03:00