]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Don't use bch2_btree_node_lock_write_nofail() in btree split path
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 11 Apr 2024 05:01:11 +0000 (01:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 12 Apr 2024 03:45:12 +0000 (23:45 -0400)
commit2b3e79fea66e166622a454715ce981432ac8c6e3
tree73873139f45518de303a5928b47aee5e46ab7284
parent1189bdda6c991cbf9342d84410042dd5f3a792e0
bcachefs: Don't use bch2_btree_node_lock_write_nofail() in btree split path

It turns out - btree splits happen with the rest of the transaction
still locked, to avoid unnecessary restarts, which means using nofail
doesn't work here - we can deadlock.

Fortunately, we now have the ability to return errors here.

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