]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: maintain a set of remote reservations
authorRonen Friedman <rfriedma@redhat.com>
Sun, 12 Nov 2023 15:25:22 +0000 (09:25 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Sat, 18 Nov 2023 17:44:32 +0000 (11:44 -0600)
commit116c72bf1b5afd4eb5e54ce4dd0a8690fdbb03b7
tree2012a27db2ee03ce3c7d1d1d8b058d1ccc5f10b0
parent77a4e0b2e1c3aea71ebf5001c877e9f2e885ce22
osd/scrub: maintain a set of remote reservations

... instead of a simple counter.

This - as a preparation for the next commit, which will decouple
the "being reserved" state from the handling of scrub requests.
The planned changes to the scrub state machine will make
it harder to know when to clear the "being reserved" state.
The changes here would allow us to err on the side of caution,
i.e. trying to "un-count" a remote reservation even if it was not
actually reserved or was already deleted.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
qa/standalone/scrub/osd-scrub-dump.sh
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/scrub_resources.cc
src/osd/scrubber/scrub_resources.h