aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-09-14 08:56:33 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:17 -0400
commit581d4e28d9195aa8b2231383dbabc288988d615e (patch)
tree093bcac9a538ef67edcf91826f7532bdb88e6248 /include/linux/blkdev.h
parent0a0d96b03a1f3bfd6bc3ea08008699e8e59fccd9 (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 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index b47767c72ce3..e34999d14c16 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -440,6 +440,7 @@ struct request_queue
440#define QUEUE_FLAG_BIDI 9 /* queue supports bidi requests */ 440#define QUEUE_FLAG_BIDI 9 /* queue supports bidi requests */
441#define QUEUE_FLAG_NOMERGES 10 /* disable merge attempts */ 441#define QUEUE_FLAG_NOMERGES 10 /* disable merge attempts */
442#define QUEUE_FLAG_SAME_COMP 11 /* force complete on same CPU */ 442#define QUEUE_FLAG_SAME_COMP 11 /* force complete on same CPU */
443#define QUEUE_FLAG_FAIL_IO 12 /* fake timeout */
443 444
444static inline int queue_is_locked(struct request_queue *q) 445static inline int queue_is_locked(struct request_queue *q)
445{ 446{