bcachefs: Change BCH_MEMBER_STATE_failed semantics
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Mar 2025 15:50:49 +0000 (10:50 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
commitd71e023376d3e56bf2a787c9b5d2600a2db2aabf
treec73c114d81711c509b0dd83bdf50024ac05fadd5
parentcf164a91066d9af7db3cfa9ee2ac2e36f692dc5e
bcachefs: Change BCH_MEMBER_STATE_failed semantics

Previously, we woudn't try to read at all from a failed device - that
doesn't make much sense, the device may be unhealthy (perhaps taking
longer than it should to service reads), but if it's our only option we
should still try to read from it.

Now, bch2_bkey_pick_read_device() will pick failed devices only if there
are no non-failed replicas to read from.

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