nvme: enable to inject errors into admin commands
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nvme: prepare for fault injection into admin commandsdrivers/ drivers/ drivers/ | +29 | 1 reply | |
| 1/2 | nvme: prepare for fault injection into admin commands | +0 | 1 reply | |
| 1/2 | nvme: prepare for fault injection into admin commands | +0 | 0 replies | |
| 2/2 | nvme: enable to inject errors into admin commandsdrivers/ drivers/ drivers/ | +16 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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