bcachefs: Ensure we flush btree updates in evacuate path
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 24 Oct 2021 21:00:33 +0000 (17:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:15 +0000 (17:09 -0400)
commit23af498cc44bc7615f3f208f39daab637bcac023
tree566392be16fd12a64ef420306940a3829ff02f54
parentf3cf0999ac1c70676ba2b4d3db7b6f02f213a2d7
bcachefs: Ensure we flush btree updates in evacuate path

This fixes a possible race where we fail to remove a device because of
btree nodes still on it, that are being deleted by in flight btree
updates.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/move.c