From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sg-1-21.ptr.blmpb.com (sg-1-21.ptr.blmpb.com [118.26.132.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D55F2222A9 for ; Thu, 25 Dec 2025 08:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766651583; cv=none; b=slYIaGngCEV8d3+h2v4ekLIBPN4d52vWMCtt/XmX4v0ONnoB6MJc3mQO1923alZXxA3BFRHWnLxjGI6/mLVosOD6L/erRm+SjNm4ZHjjTY4CY05pFo4nMiN45B8ArZwWbVHWX6tVS9VTAH5qYyduq+JDxmNBg+WCcM1j/a5jS5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766651583; c=relaxed/simple; bh=70QGiWbs8tZkgFANiDh0+NkDfZpAmXR5UYg3MK726Bo=; h=From:In-Reply-To:References:Content-Type:To:Subject:Cc:Message-Id: Date:Mime-Version; b=HxuRZKlltdaF2YrpoQBsuhGSTsrl6C4JaXGR2UaX0PQiAqHQtJ9t+fw24Do1381wKBvOVQdiJWgYzs4hvp33FlcgAZnN5jzhYmd9JuJ8M7vNF8qPLmKmgEpnkOat0QIsg5Ma+CxMDsXKoDU+W0JAbRzWe9hunwmshi6DmLOIn/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fnnas.com; spf=pass smtp.mailfrom=fnnas.com; dkim=pass (2048-bit key) header.d=fnnas-com.20200927.dkim.feishu.cn header.i=@fnnas-com.20200927.dkim.feishu.cn header.b=GZU9lPAH; arc=none smtp.client-ip=118.26.132.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fnnas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fnnas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fnnas-com.20200927.dkim.feishu.cn header.i=@fnnas-com.20200927.dkim.feishu.cn header.b="GZU9lPAH" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=fnnas-com.20200927.dkim.feishu.cn; t=1766651460; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=icTGoePVVcIxj/grYIkGip77d4Hq7eAhcTIy+aryr9w=; b=GZU9lPAHf/+TMa4uwdBQIk+qFoxq55whvMiGdLQp8OHO0TzJ7QWUJFC0nhoW1MwObVXO+j p8LuAOEwymatYui7ZfT9Ltt6ahIV5Ochkro5YFc78wf88X6Xu+2I99pxbtigYB5tZ8xV2H Gz3BAce7pJih2tQloK7Qau41t6V26r8ntQfSX7M3pwtDl9LrBu21v1BPqkeD23jBiDEU77 oL9bgA5AipiGAHkdUwkI/Hbb+PBRsHmWWPNOUy5Wjtfm0Xxbr3RxYOQTE6Yg4Dzt5T6Kqq Mn2+a2XW6MItKJ6f4CI9OShq2oJA5O+JiS1DmkV7HC2K8sDRa9iO/SflBEQWrQ== From: "Yu Kuai" In-Reply-To: <20251219092127.1815922-1-linan666@huaweicloud.com> References: <20251219092127.1815922-1-linan666@huaweicloud.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Reply-To: yukuai@fnnas.com To: , , , Subject: Re: [PATCH 1/2] md: Fix logical_block_size configuration being overwritten X-Lms-Return-Path: Cc: , , , , , Message-Id: Received: from [192.168.1.104] ([39.182.0.136]) by smtp.feishu.cn with ESMTPS; Thu, 25 Dec 2025 16:30:57 +0800 X-Original-From: Yu Kuai User-Agent: Mozilla Thunderbird Date: Thu, 25 Dec 2025 16:30:56 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Language: en-US =E5=9C=A8 2025/12/19 17:21, linan666@huaweicloud.com =E5=86=99=E9=81=93: > From: Li Nan > > 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 > --- > drivers/md/md.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)\ LGTM Reviewed-by: Yu Kuai --=20 Thansk, Kuai