bcachefs: Fix lost wakeup on journal shutdown
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 19 Mar 2024 02:18:02 +0000 (22:18 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 19 Mar 2024 03:35:42 +0000 (23:35 -0400)
commit2e92d26b25432ec3399cb517beb0a79a745ec60f
treec1bcf454067d24bad091ae6a1f4aec904947a305
parentc502b5b878144f43fd06323a95d1e69eed964d8e
bcachefs: Fix lost wakeup on journal shutdown

We need to check for journal shutdown first in __journal_res_get() -
after the journal is shutdown, j->watermark won't be changing anymore.

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