Re: [PATCH v2 04/11] md/raid1,raid10: support narrow_write_error when badblocks is disabled

From: Yu Kuai

Date: Sat Nov 08 2025 - 05:11:23 EST


在 2025/11/6 19:59, linan666@xxxxxxxxxxxxxxx 写道:

> When badblocks.shift < 0 (badblocks disabled), narrow_write_error()
> return false, preventing write error handling. Since narrow_write_error()
> only splits IO into smaller sizes and re-submits, it can work with
> badblocks disabled.
>
> Adjust to use the logical block size for block_sectors when badblocks is
> disabled, allowing narrow_write_error() to function in this case.
>
> Suggested-by: Kenta Akagi<k@xxxxxxx>
> Signed-off-by: Li Nan<linan122@xxxxxxxxxx>
> ---
> drivers/md/raid1.c | 8 ++++----
> drivers/md/raid10.c | 8 ++++----
> 2 files changed, 8 insertions(+), 8 deletions(-)

LGTM
Reviewed-by: Yu Kuai <yukuai@xxxxxxxxx>