From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.220 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796480367; b=2g4gtryaFYq6w3R5cfEG9EJ72eKUZ7tRlRdcbn7JpEDIbjHASrkwAU9UDKO3ifrouArQ 8thMnTr7HA9Kdudm4bShKQF4xqYbZO46qwVj07o3alUXfvf2+/UsKe1/4Wss2Ls4EItl7 +h7GJZhs1XrzHMHMkFblYO81BPGsWlQqbSMwrdQbYGIthOFqb5I5w/Hmu2xWn4dAh3Xfz g8Ikged5yAekXKCoI23Rl/msfxZd55ymFTflW9+LuBk1lclGuzS9g4H0go2x4dSsFrBF1 Qvc9q9MXwzhcUS1zpAYQ0NPQukQM37i/yiUoNxbI1StlfIWr0lVr5YUHj1vqoEPZNqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796480367; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=zD1TAdVoTYX529xInwTezvb0IrnS6flkU64l/nhWZak=; b=sHFqZL+VL/e2rb6QLrDvhhIpfRshFjo0PG8O0R2ZgVP8zQI1REUiaWa0bDW5KnMbS9qP VvKf9+GQhNpuM6Y9KOtbV+DRpnaJ5K24EzhpbZS3N/hRPS1kDjt5qpTIo7cYvXWh/VGg7 jDGhJMt+1T6AjcjpJ7Gh/x8pa0AY4velon3jsp7CAKPnoey+wj5EQC7bY1QNL9bjEnOfT zProW0w6Gqx6n0ySa4sfcRfjrzk6XFe4V5Yg12tboymKc9iLMcNTHLJl/7/O1GAIECh4F TVPXlZVYnbWSP6R+gR5CAmS4KHd8pn/N1RLIaAmw7FYHHLah3uxaU5E6QczFhSr7Esg== 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=MQ20JNsM; arc=none smtp.remote-ip=91.218.175.220 Received: from mta0.migadu.com (out-220.mta0.migadu.com [91.218.175.220]) (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 8D4D1606A338 for ; Sat, 5 Dec 2026 14:19:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D4D1606A338 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=MQ20JNsM X-Envelope-To: linux-doc@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=xxG+IFjU0oTowU7hdTmadIWSyN0eY3ZjX6O5Ybj2K34=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796480364; v=1; x=1797085164; b=MQ20JNsMUjV9GA1jibFW7nl9ERIP2pb/6zE1en29Lrjlzhv6UrOlxGqeNlqGPjW101qJhcmZ BjmY4+CefU0Pf4OT+AvjZh2aRU/qAj79Z+Vbc8YX5HHaAJKl9IR8ckQ0jepSFB/dzE5tKJtwKeg dV2n5Pit6XwOQVnYWf6/Mpto= X-Envelope-To: linux-doc@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 6168b378778d0151; Sat, 05 Dec 2026 14:19:24 +0000 X-Mizu-Trace-ID: 6168b378778d0151 X-Migadu-Flow: FLOW_OUT From: Md Haris Iqbal To: Jens Axboe , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Jonathan Corbet , linux-doc@vger.kernel.org, Md Haris Iqbal Subject: [PATCH for-rc 0/3] block: error injection delay fixes Date: Sat, 5 Dec 2026 15:19:09 +0100 Message-ID: <20261205141912.37608-1-haris.iqbal@linux.dev> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-doc@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 Hi Jens, Please consider these for the current rc. They fix the error injection delay_us option added in 6bd856cc9996 ("block: allow error injection rules to delay bios"). 1: fail a delayed bio if its disk was removed; unbinding sd while a bio is delayed oopses without it. 2: clear BIO_ERROR_INJECTED in bio_set_dev(), so it only covers the device the bio was delayed on. 3: copy the flag to bio_split() splits, so raid10's discard split isn't checked twice. Tested in a VM with null_blk, nvme-loop and scsi_debug. Claude helped with the fixes and was used to review them. I went through all of it and tested it myself. Md Haris Iqbal (3): block: fail a delayed bio if its disk was removed block: clear BIO_ERROR_INJECTED when a bio changes device block: copy BIO_ERROR_INJECTED to the split in bio_split() Documentation/block/error-injection.rst | 6 +++--- block/bio.c | 2 ++ block/error-injection.c | 10 ++++++++-- include/linux/bio.h | 4 +++- 4 files changed, 16 insertions(+), 6 deletions(-) -- 2.53.0