summaryrefslogtreecommitdiff
path: root/Documentation/fault-injection/fault-injection.txt
diff options
context:
space:
mode:
authorThomas Tai <thomas.tai@oracle.com>2018-02-08 21:38:30 +0300
committerJens Axboe <axboe@kernel.dk>2018-03-26 17:53:43 +0300
commitcf4182f3d06cec0546c69123f4104a2b69d07be2 (patch)
treeb1dcee84f0fb7b16611a9663d4979905fdcc5182 /Documentation/fault-injection/fault-injection.txt
parentb9e03857f2e22788db6ccb67512a6604a6b4f6db (diff)
downloadlinux-cf4182f3d06cec0546c69123f4104a2b69d07be2.tar.xz
Documentation: nvme: Documentation for nvme fault injection
Add examples to show how to use nvme fault injection. Signed-off-by: Thomas Tai <thomas.tai@oracle.com> Reviewed-by: Eric Saint-Etienne <eric.saint.etienne@oracle.com> Signed-off-by: Karl Volz <karl.volz@oracle.com> Reviewed-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/fault-injection/fault-injection.txt')
-rw-r--r--Documentation/fault-injection/fault-injection.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/fault-injection/fault-injection.txt b/Documentation/fault-injection/fault-injection.txt
index de1dc35fe500..4d1b7b4ccfaf 100644
--- a/Documentation/fault-injection/fault-injection.txt
+++ b/Documentation/fault-injection/fault-injection.txt
@@ -36,6 +36,14 @@ o fail_function
ALLOW_ERROR_INJECTION() macro, by setting debugfs entries
under /sys/kernel/debug/fail_function. No boot option supported.
+o NVMe fault injection
+
+ inject NVMe status code and retry flag on devices permitted by setting
+ debugfs entries under /sys/kernel/debug/nvme*/fault_inject. The default
+ status code is NVME_SC_INVALID_OPCODE with no retry. The status code and
+ retry flag can be set via the debugfs.
+
+
Configure fault-injection capabilities behavior
-----------------------------------------------