bcachefs: bch2_moving_ctxt_flush_all()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 Nov 2023 22:24:32 +0000 (17:24 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 24 Nov 2023 07:08:25 +0000 (02:08 -0500)
commit50e029c6390a6795869b742a5fce1e57d6a76c82
tree072b0f894d0989609a47db26900eda354ca50bba
parent6201d91ee32cf92e9bcca69a3cf73461827b5ce5
bcachefs: bch2_moving_ctxt_flush_all()

Introduce a new helper to flush all move IOs, and use it in a few places
where we should have been.

The new helper also drops btree locks before waiting on outstanding move
writes, avoiding potential deadlocks.

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