bcachefs: Fix locking in data move path
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 16 Feb 2022 04:40:30 +0000 (23:40 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:23 +0000 (17:09 -0400)
commit52eef42c5fecb037b626cbab2dd06f34e5f0fddb
tree9b1420e31dcbd1bf67b3a26f05102c018815ba68
parent2ce8fbd9bbfaea9786f56012a633dedb86349c5a
bcachefs: Fix locking in data move path

We need to ensure we don't have any btree locks held when calling
do_pending_writes() - besides issuing IOs, upcoming allocator changes
will have allocations doing btree lookups directly.

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