null_blk: wire up timeouts
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 19:47:24 +0000 (12:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 21:59:19 +0000 (14:59 -0700)
commit5448aca41cd58e1a20574b6f29a8478bbb123dc3
treef28276d8138b9298c6782f5a8fad937a846e661e
parent8abef10b3de1144cfe968f454946f13eb1ac3d0a
null_blk: wire up timeouts

This is needed to ensure that we actually handle timeouts.
Without it, the queue_mode=1 path will never call blk_add_timer(),
and the queue_mode=2 path will continually just return
EH_RESET_TIMER and we never actually complete the offending request.

This was used to test the new timeout code, and the changes around
killing off REQ_ATOM_COMPLETE.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c