bcachefs: Don't keep nodes in btree_reserve locked
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 7 Feb 2022 06:19:39 +0000 (01:19 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:23 +0000 (17:09 -0400)
commit35228ecb7e4d45822c0e2acbb0fb9555da31ef31
tree0b06bcb033979c51f31dabf5ec75265f3dfc8337
parentb74b147ddabe29a91a00d9f2cefeb6892e6a5a0a
bcachefs: Don't keep nodes in btree_reserve locked

These nodes aren't reachable by other threads, so there's no need to
keep it locked - and this fixes a bug with the assertion in
bch2_trans_unlock() firing on transaction restart.

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