]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Replace active/pending scrub tracking for local/remote 30192/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 31 Jul 2019 00:15:32 +0000 (00:15 +0000)
committerDavid Zafman <dzafman@redhat.com>
Tue, 10 Sep 2019 20:33:27 +0000 (13:33 -0700)
commitb3e1c58b0ee70630d9e41269c181166c0b7ce703
treec28d80ac8da75cd815dd864c3a7012ac42a0e9d9
parent8dffd68365dcd093795de118642c822e66dc939b
osd: Replace active/pending scrub tracking for local/remote

This is similar to how recovery reservations are split between
local and remote.

It was the case that scrubs_pending was used for reservations at
the replicas as well as at the primary while requesting reservations
from the replicas.  There was no need for scrubs_pending to turn
into scrubs_active at the primary as nothing treated that value
as special.  scrubber.active = true when scrubbing is
actually going.

Now scurbber.local_reserved indicates scrubs_local incremented
Now scrubber.remote_reserved indicates scrubs_remote incremented

Fixes: https://tracker.ceph.com/issues/41669
Signed-off-by: David Zafman <dzafman@redhat.com>
PendingReleaseNotes
doc/dev/osd_internals/scrub.rst
qa/standalone/scrub/osd-scrub-dump.sh [new file with mode: 0755]
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h