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>
This commit is contained in:
Kent Overstreet 2018-11-18 21:35:59 -05:00 • committed by Kent Overstreet
commit f1a79365a7
4 changed files with 108 additions and 59 deletions