From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.70.43.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796260603; b=k3Ptzs9YLokFUxcOec4Ad26Zx0+afLCrMRji14ii2oHvoXbFKf7HiSzDhnTsneUdtUxK 0mJCeDrt433p3YYesljuVnhIDxYajAyNmKXZ30iouEdAhFtdxYqghcgBOh61zSqQIn+sa NpqG9Phgn+/67Cpjx+VIh271UFfuFB43vBea4S/Kd/KFR+eVa5u5fi83JIyNE91R4PWLt SN2lHpTZUHJyryczqMdMB4od9P5RawvFmSq6JI9FoKfV1tR1Sk0y/77K1DIuENvPHluFb TQO8EjfduXcvTuddbGLhGWBOpo1PYj8ROR9MD4hykX7EMcP0rHq2BDAER3vUjqNcHrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796260603; h=DMARC-Filter:DKIM-Signature:X-Pm-Submission-Id:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=QOx0pOHKWrjK/u/QfpTvdh4vnqV3DpYRoxgAy6n1P6Y=; b=i27Rivu5bwbDTTrpee1JPzSa0WfwJms9VCiesKf8NzC46juyN5OaBUCcXRom6UQ0Y1k3 +ydmLs3wkXhUtfpWTkQs9c+LFooTCG/IoWr3UF1MzueeRMdaaH1XU8BVUnl2wT6o5cXID UDbgrPmcAeTyYAQBMrQwpFQbO4iSSDdqTLSTnNvB+jjb6DD8WEY5t6DJTEtxJl3t1vF6l 1ik1F58FVQp1IKl7elRW33o/JHjsgEi+rzgpPihKjVeBCuTlEtKo7WBUcjC9UR3lHsjKG Bd9sFnNdUU+EXtatifEHO0ZrDO1eR+tiPv7qi4GLXTd2xSnSjEKohUYe9vxjhVvF/4g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=raidlab.org; spf=pass smtp.mailfrom=raidlab.org; dkim=pass header.d=raidlab.org header.i=@raidlab.org header.a=rsa-sha256 header.s=protonmail header.b=IeYAcXAZ; arc=none smtp.remote-ip=185.70.43.170 Received: from mail-43170.protonmail.ch (mail-43170.protonmail.ch [185.70.43.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A32F606A339 for ; Thu, 3 Dec 2026 01:16:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9A32F606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raidlab.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raidlab.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=raidlab.org header.i=@raidlab.org header.a=rsa-sha256 header.s=protonmail header.b=IeYAcXAZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raidlab.org; s=protonmail; t=1796260592; x=1796519792; bh=QOx0pOHKWrjK/u/QfpTvdh4vnqV3DpYRoxgAy6n1P6Y=; h=From:To:Cc:Subject:Date:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=IeYAcXAZq4ef2uaen6qvsXD+W31hkcKQmECSvkmCKz3ujQ6mvrEHF5gRzIdW6vh6g UUtQDPlmVEF3wKgaT6F8adL61T/Ujrtf6YYiA7zg3D/k0ez1WY4/FKH/tThuH6XcJe bWSVUnrTSIQoKaEgDWgg0WrQrf0fee2IkrMIrbyvG3UOjrrBEZv4vFST4SRfyHpRh8 uzzNr9NQ2jWd87TB9hSyzF45WRDHdfaMqzHnU5gNRwkFmYV0OTgOGMEDrG6rKLs30t sia0xpiyyVizPVFSPR1eEtDBmszTbLwCx1TiISxNjnKQfONxF+DnPaubeNXwz/4/Xl tNS3eI+6gxSgg== X-Pm-Submission-Id: 4jfxXt3hsjz2ScNK From: Miroslav Cimerman To: Song Liu , Yu Kuai Cc: Li Nan , Xiao Ni , NeilBrown , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] md/raid10: don't fail a replacement on a successful resync write Date: Thu, 3 Dec 2026 01:16:06 +0000 Message-ID: <20261203011606.408794-1-mc@raidlab.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit raid10_sync_request() sets bi_status of a resync write to a replacement to BLK_STS_IOERR and does not clear it before submitting. A successful write does not change bi_status, so end_sync_write() fails the replacement on the first chunk a resync writes to it. Remove the bi_status assignment. raid10_alloc_init_r10buf() already reset the bio, so bi_status starts at 0. Fixes: 8be185f2c9d5 ("raid10: Use bio_reset()") Cc: stable@vger.kernel.org Signed-off-by: Miroslav Cimerman --- The assignment was harmless until 8be185f2c9d5 removed the loop that set BIO_UPTODATE again before submission. 7bb23c493405 restored it for the reads only. drivers/md/raid10.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 68f42cad32a5..6950212bdadc 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -3547,7 +3547,6 @@ static sector_t raid10_sync_request(struct mddev *mddev, sector_t sector_nr, /* Need to set up for writing to the replacement */ bio = r10_bio->devs[i].repl_bio; - bio->bi_status = BLK_STS_IOERR; sector = r10_bio->devs[i].addr; bio->bi_next = biolist; base-commit: c526b7cd32f75fea6021ffdab287b81cf38ddeb7 -- 2.53.0