linux/drivers/nvme/host
Akinobu Mita f79d5fda4e nvme: enable to inject errors into admin commands
This enables to inject errors into the commands submitted to the admin
queue.

It is useful to test error handling in the controller initialization.

	# echo 100 > /sys/kernel/debug/nvme0/fault_inject/probability
	# echo 1 > /sys/kernel/debug/nvme0/fault_inject/times
	# echo 10 > /sys/kernel/debug/nvme0/fault_inject/space
	# nvme reset /dev/nvme0
	# dmesg
	...
	nvme nvme0: Could not set queue count (16385)
	nvme nvme0: IO queues not created

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2019-06-21 11:15:50 +02:00
..
core.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fabrics.c nvme: introduce nvme_is_fabrics to check fabrics cmd 2019-06-21 11:08:38 +02:00
fabrics.h nvme-fabrics: convert to SPDX identifiers 2019-02-20 07:22:13 -07:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme-fc: add message when creating new association 2019-06-21 11:08:38 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
lightnvm.c block: remove blk_init_request_from_bio 2019-06-20 10:29:22 -06:00
Makefile nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
multipath.c nvme-multipath: avoid crash on invalid subsystem cntlid enumeration 2019-05-13 16:00:03 +02:00
nvme.h nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
pci.c nvme-pci: clean up nvme_remove_dead_ctrl a bit 2019-06-21 11:08:39 +02:00
rdma.c nvme-rdma: use dynamic dma mapping per command 2019-06-06 09:53:19 -07:00
tcp.c nvme-tcp: fix queue mapping when queue count is limited 2019-05-30 11:07:37 -07:00
trace.c nvme-trace: support for fabrics commands in host-side 2019-06-21 11:12:22 +02:00
trace.h nvme-trace: print result and status in hex format 2019-06-21 11:12:37 +02:00