From: akinobu.mita@gmail.com (Akinobu Mita) Date: Wed, 29 May 2019 02:03:36 +0900 Subject: [PATCH 0/2] nvme: enable to inject errors into admin commands Message-ID: <1559063018-3682-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 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 Cc: Keith Busch Cc: Jens Axboe Cc: Christoph Hellwig Cc: Sagi Grimberg -- 2.7.4