Skip to content

Commit f2298c0

Browse files
committed
null_blk: multi queue aware block test driver
A driver that simply completes IO it receives, it does no transfers. Written to fascilitate testing of the blk-mq code. It supports various module options to use either bio queueing, rq queueing, or mq mode. Signed-off-by: Jens Axboe <[email protected]>
1 parent 320ae51 commit f2298c0

File tree

3 files changed

+639
-0
lines changed

3 files changed

+639
-0
lines changed

drivers/block/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ menuconfig BLK_DEV
1515

1616
if BLK_DEV
1717

18+
config BLK_DEV_NULL_BLK
19+
tristate "Null test block driver"
20+
1821
config BLK_DEV_FD
1922
tristate "Normal floppy disk support"
2023
depends on ARCH_MAY_HAVE_PC_FDC

drivers/block/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ obj-$(CONFIG_BLK_DEV_RBD) += rbd.o
4141
obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/
4242

4343
obj-$(CONFIG_BLK_DEV_RSXX) += rsxx/
44+
obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o
4445

4546
nvme-y := nvme-core.o nvme-scsi.o
4647
swim_mod-y := swim.o swim_asm.o

0 commit comments

Comments
 (0)