]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: tag replica scrub messages to identify stale events
authorRonen Friedman <rfriedma@redhat.com>
Thu, 5 Aug 2021 07:53:11 +0000 (07:53 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 20 Aug 2021 14:33:21 +0000 (14:33 +0000)
commit6ff3a8274a72f4052f343b284cc84d25c4796d0b
treedd50d8dfbfe5549d92ef60139506323de66360a6
parent384c2f04c5236876006bfda093fc49f2bcc87534
osd/scrub: tag replica scrub messages to identify stale events

A lot can happen while a replica is waiting for the backend
to collect the map data. The Primary might, for example, abort
the scrub and start a new one (following no-scrub commands).

The 'token' introduced here tags 'replica scrub resched'
messages with an index value that is modified on each 'release
scrub resources' request from the Primary.

Fixes: https://tracker.ceph.com/issues/52012
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/pg_scrubber.cc
src/osd/pg_scrubber.h
src/osd/scheduler/OpSchedulerItem.cc
src/osd/scheduler/OpSchedulerItem.h
src/osd/scrubber_common.h