Re: [PATCH 1/2] md: Fix logical_block_size configuration being overwritten
From: Yu Kuai
Date: Thu Dec 25 2025 - 03:33:12 EST
在 2025/12/19 17:21, linan666@xxxxxxxxxxxxxxx 写道:
> From: Li Nan<linan122@xxxxxxxxxx>
>
> 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>
> ---
> drivers/md/md.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)\
LGTM
Reviewed-by: Yu Kuai <yukuai@xxxxxxxxx>
--
Thansk,
Kuai