]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: check reservation replies for relevance 55217/head
authorRonen Friedman <rfriedma@redhat.com>
Wed, 17 Jan 2024 15:36:16 +0000 (09:36 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 23 Jan 2024 09:33:03 +0000 (03:33 -0600)
commit7559a6c0d11b5c8f2443e208c8188a9201b82a4d
tree7704441911695ab19cc4c3f25fb9d8e3bf14563b
parentee8e4150e430a523e368bdb8cfe1cb8b76888618
osd/scrub: check reservation replies for relevance

Compare a token (nonce) carried in the reservation reply with the remembered
token of the reservation request.  If they don't match, the reply is
stale and should be ignored (and logged).

Fixes: https://tracker.ceph.com/issues/64052
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/messages/MOSDScrubReserve.h
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h
src/osd/scrubber/scrub_reservations.cc
src/osd/scrubber/scrub_reservations.h