Re: [PATCH v3 1/2] md: Fix logical_block_size configuration being overwritten

From: Yu Kuai
Date: Fri Dec 26 2025 - 21:15:53 EST


在 2025/12/26 10:42, linan666@xxxxxxxxxxxxxxx 写道:

> In super_1_validate(), mddev->logical_block_size is directly overwritten
> with the value from metadata. This causes the previously configured lbs
> to be lost, making the configuration ineffective. Fix it.
>
> Fixes: 62ed1b582246 ("md: allow configuring logical block size")
> Signed-off-by: Li Nan<linan122@xxxxxxxxxx>
> Reviewed-by: Yu Kuai<yukuai@xxxxxxxxx>
> ---
> drivers/md/md.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Applied to md-6.19

--
Thansk,
Kuai