blk-mq: allow setting of per-request timeouts
authorJens Axboe <axboe@fb.com>
Fri, 23 May 2014 20:14:57 +0000 (14:14 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:48 +0000 (12:54 -0600)
commit2b11ef3f2885423d120fd8e9e5bff2f675f08ea3
treeb915c2dad4bc49073aab7117fe8bb34d1dfb5219
parent4720a7b05f5ec05e2c8e38e2ce0946f6d5599285
blk-mq: allow setting of per-request timeouts

Currently blk-mq uses the queue timeout for all requests. But
for some commands, drivers may want to set a specific timeout
for special requests. Allow this to be passed in through
request->timeout, and use it if set.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c