]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit667384f0aa09ded288e5693638cbe3e6b47c344a
treea775af0fa69f0eb8f81ce258fbfbab52d6ae86e4
parentaccf61bd453ddbf230c8ce47c7152c4266104841
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