From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sg-1-40.ptr.blmpb.com (sg-1-40.ptr.blmpb.com [118.26.132.40]) (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 36A64306490 for ; Sat, 3 Jan 2026 10:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.40 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767436585; cv=none; b=YRV2ACZhoG828AI1rpCvdkNXCKLEYiJg/wPzoxLBtSbFX/2kxgEHGp0J76ZasQzl5/aDFZbZ8vGIZ9YCVipSh7CkTXG8WB2C7ZCM8kMNyunuN2jmRnmxgl0CCbYW3eNEfAvxGfADGUmaikgDrY29tEc0DA2bbB7Dp+F+eI+6Zf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767436585; c=relaxed/simple; bh=X2/ehihUxRMoaP1woVIQwmKi+27iaR0agJWTCC0ymaY=; h=Subject:To:Date:Message-Id:Content-Type:Cc:From:In-Reply-To: Mime-Version:References; b=Xf2erizy9ILpdu493/TjXOkkb5dWol5AdlbbBPrRyru+p9pdGQJAAEQ1kDJEyay6A3x356jZhYeUuOHTaKG9koEl+Ha04iXY0CBM+YnlqQr2xFuaD06DlhafM6nqSkn85aLcDnsGGnp2QxbesYfCvremC8qnJX6QIgKvxJkUiXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fnnas.com; spf=none 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=h/5GzTTR; arc=none smtp.client-ip=118.26.132.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fnnas.com Authentication-Results: smtp.subspace.kernel.org; spf=none 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="h/5GzTTR" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=fnnas-com.20200927.dkim.feishu.cn; t=1767436568; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=Z3suxR9XyLrWWiQcwicKj7vGqMEHFOsX2laRhE+nQVE=; b=h/5GzTTRGFn+1gSoin+SSU/hQfUIbZ69L6RK5olMILs2In3IaqDVZdMLzDofwo14oCG+5A bnxGfDnaX2jO1w1YrMNFSNdCp/s/4/egjFhyLGrQNCtjKA6WVEPaQq3J7uknvNVIGfchNT YXXKrw6/H9JVWFLr17tVpno8Q+cTgngUONKP2pe+gyUNRWwhzT8m6PPzbO+4/kEJvldWRb EEfnlB9b9nUe+HiUj8+4KtKGsBGOa8gx+3aadyh1M2mrm1Dy+92o7uZwxNKPNY/RQ1/pUz 8UafE7QR/z/revjdxRIVdzIy9cs7KsGZxoErbwVAvEQVZRYrsrgoCU/T4qRN6g== Subject: Re: [PATCH v3 08/13] md: remove MD_RECOVERY_ERROR handling and simplify resync_offset update Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Lms-Return-Path: Reply-To: yukuai@fnnas.com To: , , , Date: Sat, 3 Jan 2026 18:36:01 +0800 Message-Id: <74d80322-6a84-4d03-b09f-0f9dc5c1bec8@fnnas.com> Content-Type: text/plain; charset=UTF-8 User-Agent: Mozilla Thunderbird Cc: , , , , From: "Yu Kuai" In-Reply-To: <20251215030444.1318434-9-linan666@huaweicloud.com> Received: from [192.168.1.104] ([39.182.0.186]) by smtp.feishu.cn with ESMTPS; Sat, 03 Jan 2026 18:36:05 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251215030444.1318434-1-linan666@huaweicloud.com> <20251215030444.1318434-9-linan666@huaweicloud.com> X-Original-From: Yu Kuai =E5=9C=A8 2025/12/15 11:04, linan666@huaweicloud.com =E5=86=99=E9=81=93: > From: Li Nan > > Following previous patch "md: update curr_resync_completed even when > MD_RECOVERY_INTR is set", 'curr_resync_completed' always equals > 'curr_resync' for resync, so MD_RECOVERY_ERROR can be removed. > > Also, simplify resync_offset update logic. > > Signed-off-by: Li Nan > --- > drivers/md/md.h | 2 -- > drivers/md/md.c | 21 ++++----------------- > 2 files changed, 4 insertions(+), 19 deletions(-) Reviewed-by: Yu Kuai --=20 Thansk, Kuai