]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: split on_pg_activate from on_new_interval
authorRonen Friedman <rfriedma@redhat.com>
Wed, 1 Feb 2023 07:22:00 +0000 (09:22 +0200)
committerSamuel Just <sjust@redhat.com>
Wed, 12 Apr 2023 03:39:19 +0000 (20:39 -0700)
commit754157c4289395677a3edf5e6eb81e14a7c0cf1e
treec958e2c8106b1b44d1310ae2ed05f266547eeb31
parent2176dfe32c512a68b77a9cdbec66bfdab4b2afaf
osd/scrub: split on_pg_activate from on_new_interval

Separate and clarify handling of interval termination, pg activation,
and configuration change.

A primary PG now registers with its OSD for scrubbing only on
activation: on_pg_activate() called from PG::on_activate().

When the interval ends, the scrubber is notified via on_interval_change,
which is responsible for cleaning up any active or replica state
associated with scrub.

Configuration changes are still handled by update_scrub_job().

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/pg.h
src/osd/PG.cc
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PeeringState.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h
src/osd/scrubber_common.h