]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: extracting and wrapping scrub resource management objects
authorRonen Friedman <rfriedma@redhat.com>
Thu, 12 Nov 2020 17:38:44 +0000 (19:38 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 10 Dec 2020 13:21:53 +0000 (15:21 +0200)
commit778519547ed0b3d9ffb48ad5ea1d318d1d0ab7ef
tree378214d59e18a81ebcefb410a0aa344a7ee338d8
parenta83e4c294ea40c72a400889811e911d409157c81
osd: extracting and wrapping scrub resource management objects

Auxiliary RAII wrappers around cluster-wide scrub resources
and data:

ReplicaReservations (Primary side): reserving/freeing scrub resources at the replicas.

LocalReservation (Primary): managing the local OSD's scrub resources

ReservedByRemotePrimary (replica side): being reserved/freed by the Primary

MapsCollectionStatus (Primary): tracking the availability of the chunk's scrub maps,
both the local one at the Primary, and the maps arriving from the replicas.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/CMakeLists.txt
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/pg_scrubber.cc [new file with mode: 0644]
src/osd/pg_scrubber.h [new file with mode: 0644]
src/osd/scheduler/OpSchedulerItem.cc
src/osd/scheduler/OpSchedulerItem.h