]> git.ipfire.org Git - thirdparty/linux.git/commit
block: add configurable error injection
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Jun 2026 14:06:47 +0000 (16:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Jun 2026 16:40:35 +0000 (10:40 -0600)
commite8dcf2d142bd720c8334233ad6cfdf00f0e76b7f
treefefe7d557847f9db46119ac89b8c14483f2d645b
parentd39a63ead381c7ee93cd938ea2d759c17343b522
block: add configurable error injection

Add a new block error injection interface that allows to inject specific
status code for specific ranges.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Md Haris Iqbal <haris.iqbal@linux.dev>
Link: https://patch.msgid.link/20260611140703.2401204-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/error-injection.rst [new file with mode: 0644]
Documentation/block/index.rst
block/Kconfig
block/Makefile
block/blk-core.c
block/blk-sysfs.c
block/error-injection.c [new file with mode: 0644]
block/error-injection.h [new file with mode: 0644]
block/genhd.c
include/linux/blkdev.h