Re: [v4 0/3] block: delay support for error injection
From: Jens Axboe
Date: Wed Nov 18 2026 - 11:08:40 EST
On Wed, 11 Nov 2026 22:58:35 +0100, Md Haris Iqbal wrote:
> Error injection can only fail a bio today. This adds a delay_us option so
> that a rule can hold a bio back first, to model a slow device. The delay
> happens above the driver, so it tests the code waiting above the block
> layer, not the blk-mq timeout handler.
>
> A delayed bio is marked with a new BIO_ERROR_INJECTED flag so the rules
> are not applied to it again, even after a split. Christoph asked on v2
> to avoid the flag by allowing a delay only together with an error. I kept
> delay-only rules, as a slow device that succeeds is the more useful case,
> so the flag question is still open.
>
> [...]
Applied, thanks!
[1/3] block: Reject unknown status tags in error injection rules
commit: d239710cf3e6bd5fec66766957c3752d9cfbd2c5
[2/3] block: allow error injection rules to delay bios
commit: 6bd856cc99963b786cb530141745ef733de76cc3
[3/3] Documentation: block: document error injection delay feature
commit: 5a29cfaf51105039d156dd8a61d2783e8b653667
Best regards,
--
Jens Axboe