Linux block layer
 help / color / mirror / Atom feed
From: Md Haris Iqbal <haris.iqbal@linux.dev>
To: Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-doc@vger.kernel.org, Md Haris Iqbal <haris.iqbal@linux.dev>
Subject: [PATCH for-rc 0/3] block: error injection delay fixes
Date: Sat,  5 Dec 2026 15:19:09 +0100	[thread overview]
Message-ID: <20261205141912.37608-1-haris.iqbal@linux.dev> (raw)

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


             reply	other threads:[~2026-12-05 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 14:19 Md Haris Iqbal [this message]
2026-12-05 14:19 ` [PATCH for-rc 1/3] block: fail a delayed bio if its disk was removed Md Haris Iqbal
2026-12-05 14:19 ` [PATCH for-rc 2/3] block: clear BIO_ERROR_INJECTED when a bio changes device Md Haris Iqbal
2026-12-05 14:19 ` [PATCH for-rc 3/3] block: copy BIO_ERROR_INJECTED to the split in bio_split() Md Haris Iqbal
2026-12-05 14:33 ` [PATCH for-rc 0/3] block: error injection delay fixes Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2026-12-05 12:55 Md Haris Iqbal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205141912.37608-1-haris.iqbal@linux.dev \
    --to=haris.iqbal@linux.dev \
    --cc=axboe@kernel.dk \
    --cc=corbet@lwn.net \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox