]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: do not start scrubbing if the PG is snap-trimming 46440/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 31 May 2022 07:14:06 +0000 (07:14 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 1 Jun 2022 05:01:41 +0000 (05:01 +0000)
commit51816cdbba387b4bd266854476dc123fb330bbc8
tree85e9aa6bb41391b05afdedf663013702ed6311c8
parent2469ae8b315b4d112fe4cb3bb7b6589f69c7ee5c
osd/scrub: do not start scrubbing if the PG is snap-trimming

Both 'snap-trim' and 'snaptrim-wait' PG states now prevent
scrub from starting.

Background:
A PG should not be scrubbed and trimmed concurrently. Unlike
write operations, snap trimming does not verify that a targeted
object is not in the executing scrub's chunk.
The trimmer always checked for active scrubs before starting. The
scrubber - did not. This PR fixes that omission.

Fixes: https://tracker.ceph.com/issues/49525
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/PG.cc