History

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.

Jens Axboe committed 18 years ago

Commit 581d4e21 parent 0a0d96b6 files · +94 −1Browse files

Showing the changes to include/linux/blkdev.h (1 of 6 files). Show all

Unified · Split

include/linux/blkdev.h+1−0
@@ -440,6 +440,7 @@ struct request_queue · 439 unmodified lines
440440 #define QUEUE_FLAG_BIDI 9 /* queue supports bidi requests */
441441 #define QUEUE_FLAG_NOMERGES 10 /* disable merge attempts */
442442 #define QUEUE_FLAG_SAME_COMP 11 /* force complete on same CPU */
443+#define QUEUE_FLAG_FAIL_IO 12 /* fake timeout */
443444
444445 static inline int queue_is_locked(struct request_queue *q)
445446 {