bcachefs: bch2_dev_get_ioref() may now sleep
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 1 Mar 2025 22:34:33 +0000 (17:34 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
commitcf164a91066d9af7db3cfa9ee2ac2e36f692dc5e
tree5a3a80ee880288bfe2a23af38969cd19ad05af40
parent2efa8397cac3bb18a129054d22ae58b60fbbdd26
bcachefs: bch2_dev_get_ioref() may now sleep

The next patch implementing freezing will change bch2_dev_get_ioref() to
sleep if a device is currently frozen.

Add an annotation and fix the journal code accordingly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c
fs/bcachefs/sb-members.h