From: akinobu.mita@gmail.com (Akinobu Mita) Date: Sun, 2 Jun 2019 22:50:18 +0900 Subject: [PATCH v2 0/3] nvme: enable to inject errors into admin commands Message-ID: <1559483421-11361-1-git-send-email-akinobu.mita@gmail.com> 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 * 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 | 39 +++++++-------- drivers/nvme/host/nvme.h | 36 ++++++++------ 4 files changed, 102 insertions(+), 36 deletions(-) Cc: Thomas Tai Cc: Keith Busch Cc: Jens Axboe Cc: Christoph Hellwig Cc: Sagi Grimberg Cc: Minwoo Im -- 2.7.4