diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-09-14 08:56:33 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:17 -0400 |
commit | 581d4e28d9195aa8b2231383dbabc288988d615e (patch) | |
tree | 093bcac9a538ef67edcf91826f7532bdb88e6248 /lib/Kconfig.debug | |
parent | 0a0d96b03a1f3bfd6bc3ea08008699e8e59fccd9 (diff) |
block: add fault injection mechanism for faking request timeouts
Only works for the generic request timer handling. Allows one to
sporadically ignore request completions, thus exercising the timeout
handling.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c556896abe57..7d7a31d0ddeb 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -683,10 +683,21 @@ config FAIL_PAGE_ALLOC | |||
683 | 683 | ||
684 | config FAIL_MAKE_REQUEST | 684 | config FAIL_MAKE_REQUEST |
685 | bool "Fault-injection capability for disk IO" | 685 | bool "Fault-injection capability for disk IO" |
686 | depends on FAULT_INJECTION | 686 | depends on FAULT_INJECTION && BLOCK |
687 | help | 687 | help |
688 | Provide fault-injection capability for disk IO. | 688 | Provide fault-injection capability for disk IO. |
689 | 689 | ||
690 | config FAIL_IO_TIMEOUT | ||
691 | bool "Faul-injection capability for faking disk interrupts" | ||
692 | depends on FAULT_INJECTION && BLOCK | ||
693 | help | ||
694 | Provide fault-injection capability on end IO handling. This | ||
695 | will make the block layer "forget" an interrupt as configured, | ||
696 | thus exercising the error handling. | ||
697 | |||
698 | Only works with drivers that use the generic timeout handling, | ||
699 | for others it wont do anything. | ||
700 | |||
690 | config FAULT_INJECTION_DEBUG_FS | 701 | config FAULT_INJECTION_DEBUG_FS |
691 | bool "Debugfs entries for fault-injection capabilities" | 702 | bool "Debugfs entries for fault-injection capabilities" |
692 | depends on FAULT_INJECTION && SYSFS && DEBUG_FS | 703 | depends on FAULT_INJECTION && SYSFS && DEBUG_FS |