All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-rc 0/3] block: error injection delay fixes
@ 2026-12-05 12:55 Md Haris Iqbal
  2026-12-05 12:55 ` [PATCH for-rc 1/3] block: fail a delayed bio if its disk was removed Md Haris Iqbal
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Md Haris Iqbal @ 2026-12-05 12:55 UTC (permalink / raw)
  To: Jens Axboe, linux-block
  Cc: linux-kernel, Christoph Hellwig, Jonathan Corbet, linux-doc,
	Md Haris Iqbal

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


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH for-rc 0/3] block: error injection delay fixes
@ 2026-12-05 14:19 Md Haris Iqbal
  2026-12-05 14:19 ` [PATCH for-rc 1/3] block: fail a delayed bio if its disk was removed Md Haris Iqbal
  0 siblings, 1 reply; 11+ messages in thread
From: Md Haris Iqbal @ 2026-12-05 14:19 UTC (permalink / raw)
  To: Jens Axboe, linux-block
  Cc: linux-kernel, Christoph Hellwig, Jonathan Corbet, linux-doc,
	Md Haris Iqbal

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-05 14:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 12:55 [PATCH for-rc 0/3] block: error injection delay fixes Md Haris Iqbal
2026-12-05 12:55 ` [PATCH for-rc 1/3] block: fail a delayed bio if its disk was removed Md Haris Iqbal
2026-12-05 12:55 ` [PATCH 1/2] block: hold the disk while error injection delays a bio Md Haris Iqbal
2026-12-05 12:59   ` Haris Iqbal
2026-12-05 14:06     ` Jens Axboe
2026-12-05 14:18       ` Haris Iqbal
2026-12-05 12:55 ` [PATCH for-rc 2/3] block: clear BIO_ERROR_INJECTED when a bio changes device Md Haris Iqbal
2026-12-05 12:55 ` [PATCH 2/2] block: copy BIO_ERROR_INJECTED to the split in bio_split() Md Haris Iqbal
2026-12-05 12:59   ` Haris Iqbal
2026-12-05 12:55 ` [PATCH for-rc 3/3] " Md Haris Iqbal
  -- strict thread matches above, loose matches on Subject: below --
2026-12-05 14:19 [PATCH for-rc 0/3] block: error injection delay fixes Md Haris Iqbal
2026-12-05 14:19 ` [PATCH for-rc 1/3] block: fail a delayed bio if its disk was removed Md Haris Iqbal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.