Home
last modified time | relevance | path

Searched refs:fault_inject (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/nvme/host/
Dfault_inject.c51 void nvme_fault_inject_fini(struct nvme_fault_inject *fault_inject) in nvme_fault_inject_fini() argument
54 debugfs_remove_recursive(fault_inject->parent); in nvme_fault_inject_fini()
60 struct nvme_fault_inject *fault_inject = NULL; in nvme_should_fail() local
67 fault_inject = &ns->fault_inject; in nvme_should_fail()
71 fault_inject = &nvme_req(req)->ctrl->fault_inject; in nvme_should_fail()
74 if (fault_inject && should_fail(&fault_inject->attr, 1)) { in nvme_should_fail()
76 status = fault_inject->status; in nvme_should_fail()
77 if (fault_inject->dont_retry) in nvme_should_fail()
DMakefile18 nvme-core-$(CONFIG_FAULT_INJECTION_DEBUG_FS) += fault_inject.o
Dnvme.h389 struct nvme_fault_inject fault_inject; member
520 struct nvme_fault_inject fault_inject; member
624 void nvme_fault_inject_fini(struct nvme_fault_inject *fault_inject);
Dcore.c3674 nvme_fault_inject_init(&ns->fault_inject, ns->disk->disk_name); in nvme_alloc_ns()
3705 nvme_fault_inject_fini(&ns->fault_inject); in nvme_ns_remove()
4405 nvme_fault_inject_fini(&ctrl->fault_inject); in nvme_uninit_ctrl()
4530 nvme_fault_inject_init(&ctrl->fault_inject, dev_name(ctrl->device)); in nvme_init_ctrl()
4538 nvme_fault_inject_fini(&ctrl->fault_inject); in nvme_init_ctrl()
/linux-6.6.21/Documentation/fault-injection/
Dnvme-fault-injection.rst22 echo 1 > /sys/kernel/debug/nvme0n1/fault_inject/times
23 echo 100 > /sys/kernel/debug/nvme0n1/fault_inject/probability
33 name fault_inject, interval 1, probability 100, space 0, times 1
77 echo 1 > /sys/kernel/debug/nvme0n1/fault_inject/times
78 echo 100 > /sys/kernel/debug/nvme0n1/fault_inject/probability
79 echo 1 > /sys/kernel/debug/nvme0n1/fault_inject/status
80 echo 0 > /sys/kernel/debug/nvme0n1/fault_inject/dont_retry
91 name fault_inject, interval 1, probability 100, space 0, times 1
127 echo 100 > /sys/kernel/debug/nvme0/fault_inject/probability
128 echo 10 > /sys/kernel/debug/nvme0/fault_inject/space
[all …]
Dfault-injection.rst51 debugfs entries under /sys/kernel/debug/nvme*/fault_inject. The default