]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: correct zoned freelist when device write pointers are ahead
authorSage Weil <sage@newdream.net>
Tue, 7 Sep 2021 21:36:01 +0000 (16:36 -0500)
committerSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 13:55:57 +0000 (09:55 -0400)
commitbeef6bbdf1552f2955412dbd9b867af7f81de05e
treef3139b299a902a01597f2ecd60aa1da95dc19c78
parent6dc9233203d5869f6d7e9681e5b37b35afbc5e04
os/bluestore: correct zoned freelist when device write pointers are ahead

If we find that the device's write pointers are ahead of ours, then we
need to advance the allocator *and* update the ondisk freelist so that we
don't see the adjustment on the next bluestore restart too.

(Actually, we could perhaps not manage the freelist at all and rely
entirely on the device's write pointers and a metadata scan on startup
w/ the null freelist mode, but it is cheap to track, and I like having
some redundancy so that we see if/when the device does something
unexpected.)

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h