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>
Fri, 23 May 2014 20:14:57 +0000 (14:14 -0600)
commitc22d9d8a60646a1521ae12a2176f58da19afa186
treea775af0fa69f0eb8f81ce258fbfbab52d6ae86e4
parentedf866b3805c5651bf7d035b72dc0190cb6ff4a7
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