bcachefs: Don't block on journal reservation with btree locks held
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 19 Nov 2018 02:35:59 +0000 (21:35 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:11 +0000 (17:08 -0400)
commitf1a79365a7416c5046f88d0db025e1d84c32b252
treeb7e0d9522c89d74404b97cacad82a172931bf06d
parent129550c4d08fcc518c7cbe747657ed18470f712a
bcachefs: Don't block on journal reservation with btree locks held

Fixes a deadlock between the allocator thread, when it first starts up,
and journal replay

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