Re: [PATCH v5 09/16] md/raid10: fix failfast read error not rescheduled

From: Yu Kuai

Date: Wed Oct 29 2025 - 22:42:03 EST


在 2025/10/27 23:04, Kenta Akagi 写道:

> raid10_end_read_request lacks a path to retry when a FailFast IO fails.
> As a result, when Failfast Read IOs fail on all rdevs, the upper layer
> receives EIO, without read rescheduled.
>
> Looking at the two commits below, it seems only raid10_end_read_request
> lacks the failfast read retry handling, while raid1_end_read_request has
> it. In RAID1, the retry works as expected.
> * commit 8d3ca83dcf9c ("md/raid10: add failfast handling for reads.")
> * commit 2e52d449bcec ("md/raid1: add failfast handling for reads.")
>
> This commit will make the failfast read bio for the last rdev in raid10
> retry if it fails.
>
> Fixes: 8d3ca83dcf9c ("md/raid10: add failfast handling for reads.")
> Signed-off-by: Kenta Akagi<k@xxxxxxx>
> Reviewed-by: Li Nan<linan122@xxxxxxxxxx>
> ---
> drivers/md/raid10.c | 7 +++++++
> 1 file changed, 7 insertions(+)

Reviewed-by: Yu Kuai <yukuai@xxxxxxxxx>