Re: [PATCH] btrfs: fix NULL end_io call when submitting a repair read fails
From: Miroslav Cimerman
Date: Wed Nov 25 2026 - 07:10:58 EST
Johannes Thumshirn <johannes.thumshirn@xxxxxxx> wrote:
> Maybe I'm missing something (sorry wall of text in the commit message
> and 7am here), but isn't it enough to set a dummy endio (like Qu also
> suggested) and then bio_io_error() out?
btrfs_end_repair_bio() has to run for the failed repair bio. It
decrements repair_count of the original read. Without that, the original
read never completes and hangs. It also tries the next mirror. Without
that, the read is not repaired from the other copies.
I tried a dummy end_io with bio_io_error(): the read hung in 3 of 3
runs, and no repair read went to another mirror after the failure.
Miroslav