bcachefs: Work around a journal self-deadlock
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 28 Mar 2022 20:21:26 +0000 (16:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:28 +0000 (17:09 -0400)
commit7fda0f08fa86731f057367ca36054d29d0c0344c
tree0e1b15e31292deffc4f9af8b59c6637441221546
parent30690c441a6b481aadb0284d1b9bf487f8d28bfc
bcachefs: Work around a journal self-deadlock

bch2_journal_space_available -> bch2_journal_halt() self deadlocks on
journal lock; work around this by dropping/retaking journal lock before
we call bch2_fatal_error().

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