mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Akinobu Mita](/assets/img/avatar_default.png)
The null_blk driver has multiple driver-specific fault injection mechanisms. Each fault injection configuration can only be specified by a module parameter and cannot be reconfigured without reloading the driver. Also, each configuration is common to all devices and is initialized every time a new device is added. This change adds the following subdirectories for each null_blk device. /sys/kernel/config/nullb/<disk>/timeout_inject /sys/kernel/config/nullb/<disk>/requeue_inject /sys/kernel/config/nullb/<disk>/init_hctx_fault_inject Each fault injection attribute can be dynamically set per device by a corresponding file in these directories. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Link: https://lore.kernel.org/r/20230327143733.14599-3-akinobu.mita@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 lines
317 B
Text
12 lines
317 B
Text
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Null block device driver configuration
|
|
#
|
|
|
|
config BLK_DEV_NULL_BLK
|
|
tristate "Null test block driver"
|
|
select CONFIGFS_FS
|
|
|
|
config BLK_DEV_NULL_BLK_FAULT_INJECTION
|
|
bool "Support fault injection for Null test block driver"
|
|
depends on BLK_DEV_NULL_BLK && FAULT_INJECTION_CONFIGFS
|