From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796475590; b=BaK6Fr7CgiYm3IuIo9fDqHzp/NO2diQrLaeJIgo995IyBRxqyH7cQpDlzYTvRes9w6Fb SbS5Q1MUL1HeaMBo3+Ft8sk//SeDrJs5nDZurQoH3BwiuNqMiaZQDTJYqh2R4upIg2gsx +uqFaEQTYDFC8BMH5rM66uCJp8vHr/TPoWM5Gg32NlnhS2VSr5jfAiFbYg0hbo/tTWj2R d3zgopGeLm2vmhhguZKXfBYYjPYYl/8ikM64LafXZlnJyzUP0mCSBnj05Tfj630nHCkbA 2ZagOh1B3qMCo+xv6aBvykMpCR1enApQfo7eDKzjZymVjy0oKt8lTjO7ysyewTC7/bg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796475590; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=WSsCmiFge9G+3HQlncNwJWDApFeyJYe00OfOQik/ea8=; b=zAXKMnZOyqRZG4MpqWKsBRw+MXkqoYOnAd4AG5+iACbmxyqK3bdev9bQQH7lPchNMBJD zqq/nv56MfywetypXDaG6SWzUMhmxVW1JwdqbrEQo0B76GPMXpEhbqChhmLOeUk6UziGR 0pkPqkNvDNxl3iQf7ziYMt86dX1/UYGH5UnhlhYD4H13G4oTfA2hPWTgl450rTd22rCoU VsTO67oa8Ug6MMMtANFzVz7aHDO79AKd5WfUxXO57IipxOc6l6+D3uw6qHGfit7gr6/pb In0sB2uriNnsveh8FLOoPGDu6Dndxa+3ZBNgi0ZKXrfe6kM9hZy6GyxKJJfPCB5hSqQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ikazRTob; arc=none smtp.remote-ip=91.218.175.49 Received: from mta0.migadu.com (out-49.mta0.migadu.com [91.218.175.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E651606A322 for ; Sat, 5 Dec 2026 12:59:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7E651606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ikazRTob X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=Opp32pZxa/Pizdk7FGIOJXdJlSQ2diiLi9oL5JReuLs=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796475587; v=1; x=1797080387; b=ikazRTobPfKWbKKQ0a2m+F7ww9bmUGy4P60tl4AJPEo7DR0QytZGJXT3CEvw6IUsXyou7qtI h8mbRJCcgbntKbv9rAaWZO11eReydLziS27HN//WfyxVnY3YB13twb3Az0+tdW5EYTnTXPaHSAl eyI09G4uu9GzChjUOTFDZCTI= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 528d8c4497a4d6a9; Sat, 05 Dec 2026 12:59:47 +0000 X-Mizu-Trace-ID: 528d8c4497a4d6a9 X-Migadu-Flow: FLOW_OUT Message-ID: <5e198c61-2984-4dcf-9127-a24c62c09d5f@linux.dev> Date: Sat, 5 Dec 2026 13:59:46 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] block: copy BIO_ERROR_INJECTED to the split in bio_split() To: Jens Axboe , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Jonathan Corbet , linux-doc@vger.kernel.org References: <20261205125510.29717-1-haris.iqbal@linux.dev> <20261205125510.29717-5-haris.iqbal@linux.dev> Content-Language: en-US From: Haris Iqbal In-Reply-To: <20261205125510.29717-5-haris.iqbal@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/5/26 13:55, Md Haris Iqbal wrote: > BIO_ERROR_INJECTED keeps a bio that was delayed by an error injection > rule from being evaluated again when it is resubmitted. bio_split() > does not copy the flag to the split. raid10_handle_discard() resubmits > the front split of an unaligned discard to the md device, so a discard > delayed by a rule on that device has its front part evaluated, and > delayed, a second time. > > Copy the flag in bio_split(), as is already done for > BIO_TRACE_COMPLETION. > > Fixes: 6bd856cc9996 ("block: allow error injection rules to delay bios") > Signed-off-by: Md Haris Iqbal This is the other one to drop. > --- > block/bio.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/block/bio.c b/block/bio.c > index b0fcc69de653..0bf72f7b9f4d 100644 > --- a/block/bio.c > +++ b/block/bio.c > @@ -1962,6 +1962,8 @@ struct bio *bio_split(struct bio *bio, int sectors, > > if (bio_flagged(bio, BIO_TRACE_COMPLETION)) > bio_set_flag(split, BIO_TRACE_COMPLETION); > + if (bio_flagged(bio, BIO_ERROR_INJECTED)) > + bio_set_flag(split, BIO_ERROR_INJECTED); > > return split; > }