]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Self healing on read IO error
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Jun 2024 17:28:30 +0000 (13:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:16 +0000 (19:00 -0400)
commita2cb8a6236daafbea5e3d9d720f5e55ba692817b
tree6f5014b0a332596e1c9aecfa74957070dc9794fb
parentb1d63b06e8398eb048dcc455acc628e6655d7499
bcachefs: Self healing on read IO error

This repurposes the promote path, which already knows how to call
data_update() after a read: we now automatically rewrite bad data when
we get a read error and then successfully retry from a different
replica.

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