From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.70.43.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796260597; b=owhJdgnTxipRF3x69+x7qGiz6QUXta4mspSwKVzf55fEHMxYJMjt5r5HR7WOKy7IEcOt zhf2tndqTZz3e9JY1/GtH8E0sT1QZtwEjT/Nsz/frjOQH5aLG4Gu1iLpA+xcA7A4fC0bJ a6uGetoZYnQOf6wANQ7SfYDzUAFxj/mBN9DRFzbtC0VAoKCakaqNprx1EeyJXYYTyCcjr F8wOHni0Yjh6lhHdmmXfrfeZsWncl08062BRI7dju4uYGKKIFPwAnDVli/hUf74yF8hzb dwucGdJby04V16rd9kFTLAcXv5/xgAZQfq5ab12LGiGpmr9b46LlR9GoWG6KlYimlAQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796260597; 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=laQg1RYMrvPqpxtH/64UCGpDPmSt7zDuq+6AoQvIN+bco1rs4ETi2FFJCoQMEEqCHTUs sa4Cbs5lnmWdy7nN4zGeU5dQ0fyI2HiZ4GtnQw/bS/xIkmhWYM4A6WF6bKVJTsJBBnaEj CbClGKlMlMsqQr8cuxQ0rkS6TZtjt6omiXryleSsXoWvwJ7tEUjllZo6x/qAq7oxzM9Jy NBqrY+x3zHiqj1oDHkrog8NfroDNei4KETpvgu4Nv35J9VbkcobaExvcZFR99RK8QCgNW SAncH82Z0+zCEM9hmFTrJL+nmwKYIELfYBfnSXghty0o91S0uk17LnUGysRwP2Sp1GQ== 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.172 Received: from mail-43172.protonmail.ch (mail-43172.protonmail.ch [185.70.43.172]) (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 A6DCD606A693 for ; Thu, 3 Dec 2026 01:16:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A6DCD606A693 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-raid@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