bcachefs: Fix a deadlock in btree_update_nodes_written()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 3 Oct 2022 20:41:17 +0000 (16:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:42 +0000 (17:09 -0400)
commit8aaee94d463f781fbd5377b7d96234342de9c6eb
tree7355102437aa8ffe31a2cfaf5286f61a0c1b0f8d
parent13bc41a7151a6af26107240fbdd2562d95adad44
bcachefs: Fix a deadlock in btree_update_nodes_written()

btree_node_lock_nopath() is something we'd like to get rid of, it's
always prone to deadlocks if we accidentally are holding other locks,
because it doesn't mark the lock it's taking in a path: we'll want to
get rid of it in the future, but for now this patch works it by calling
bch2_trans_unlock().

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