bcachefs: Fix blocking with locks held
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 24 Sep 2022 01:00:24 +0000 (21:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:41 +0000 (17:09 -0400)
commitc6cf49a95ac7aea3450cacb66b7de1d46671deeb
tree7d0321a5334f5fde5c46b64dedc86db790f5b14b
parent01ed3359b2705d7b862ad0644dabc616774f8779
bcachefs: Fix blocking with locks held

This is a major oopsy - we should always be unlocking before calling
closure_sync(), else we'll cause a deadlock.

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