Skip to content

nvme: enable to inject errors into admin commands

Akinobu Mita linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme: prepare for fault injection into admin commandsdrivers/nvme/host/core.c drivers/nvme/host/fault_inject.c drivers/nvme/host/nvme.h+29 -231 reply
1/2nvme: prepare for fault injection into admin commands+0 -01 reply
1/2nvme: prepare for fault injection into admin commands+0 -00 replies
2/2nvme: enable to inject errors into admin commandsdrivers/nvme/host/core.c drivers/nvme/host/fault_inject.c drivers/nvme/host/nvme.h+16 -121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nvme: enable to inject errors into admin commands

Currenlty fault injection support for nvme only enables to inject errors into the commands submitted to I/O queues.

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

Akinobu Mita (2):
nvme: prepare for fault injection into admin commands
nvme: enable to inject errors into admin commands

 drivers/nvme/host/core.c         |  7 +++++--
 drivers/nvme/host/fault_inject.c | 33 +++++++++++++++++----------------
 drivers/nvme/host/nvme.h         | 36 +++++++++++++++++++++---------------
 3 files changed, 43 insertions(+), 33 deletions(-)
Cc Thomas Tai <thomas.tai at oracle.com>
Cc Keith Busch <kbusch at kernel.org>
Cc Jens Axboe <axboe at fb.com>
Cc Christoph Hellwig <hch at lst.de>
Cc Sagi Grimberg <sagi at grimberg.me>
Signature · 1 line
2.7.4