]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: set_reserving_now() signature modified
authorRonen Friedman <rfriedma@redhat.com>
Sun, 10 Sep 2023 19:44:33 +0000 (14:44 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 20 Sep 2023 06:39:10 +0000 (01:39 -0500)
commitf3bd9b621c62b29d11a4ea406cd95971992ff60c
treea4582abf7aa821c0a985863d599d4e83ce8044ca
parent0bf1b29513a69773033b8965d01ad93538394ca3
osd/scrub: set_reserving_now() signature modified

set_reserving_now() can now return a failure status, indicating
a race between two PGs to start scrubbing on the same OSD.

The scrubber FSM is modified to handle the failure.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/osd_scrub_sched.cc
src/osd/scrubber/osd_scrub_sched.h
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h
src/osd/scrubber/scrub_machine_lstnr.h