From feff6894128e4bb3c903ce247edc5bd3a1b09fc9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 30 May 2014 15:42:56 -0600 Subject: [PATCH] blk-mq: remember to start timeout handler for direct queue Commit 07068d5b8e added a direct-to-hw-queue mode, but this mode needs to remember to add the request timeout handler as well. Without it, we don't track timeouts for these requests. Signed-off-by: Jens Axboe --- block/blk-mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/blk-mq.c b/block/blk-mq.c index 71f564e8812e..5443aea36542 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1217,6 +1217,7 @@ static void blk_mq_make_request(struct request_queue *q, struct bio *bio) blk_mq_bio_to_request(rq, bio); blk_mq_start_request(rq, true); + blk_add_timer(rq); /* * For OK queue, we are done. For error, kill it. Any other