All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] nvme: enable to inject errors into admin commands
@ 2019-06-09 14:16 Akinobu Mita
  2019-06-09 14:17 ` [PATCH v3 1/3] nvme: prepare for fault injection " Akinobu Mita
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Akinobu Mita @ 2019-06-09 14:16 UTC (permalink / raw)


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

* v3
- add Reviewed-by tags
- WARN_ONCE() if no namespace is tied to the request
- remove thermal zone series dependency

* v2
- rename the argument 'name' to 'dev_name'
- add Reviewed-by tags
- add documentation for nvme fault injection

Akinobu Mita (3):
  nvme: prepare for fault injection into admin commands
  nvme: enable to inject errors into admin commands
  Documentation: nvme: add an example for nvme fault injection

 .../fault-injection/nvme-fault-injection.txt       | 56 ++++++++++++++++++++++
 drivers/nvme/host/core.c                           |  7 ++-
 drivers/nvme/host/fault_inject.c                   | 41 ++++++++--------
 drivers/nvme/host/nvme.h                           | 36 ++++++++------
 4 files changed, 104 insertions(+), 36 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>
Cc: Minwoo Im <minwoo.im.dev at gmail.com>
Cc: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-20  8:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-09 14:16 [PATCH v3 0/3] nvme: enable to inject errors into admin commands Akinobu Mita
2019-06-09 14:17 ` [PATCH v3 1/3] nvme: prepare for fault injection " Akinobu Mita
2019-06-09 14:17 ` [PATCH v3 2/3] nvme: enable to inject errors " Akinobu Mita
2019-06-09 14:17 ` [PATCH v3 3/3] Documentation: nvme: add an example for nvme fault injection Akinobu Mita
2019-06-20  8:55 ` [PATCH v3 0/3] nvme: enable to inject errors into admin commands Christoph Hellwig
2019-06-20  8:57 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.