]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: ->timeout should be cleared in blk_mq_rq_ctx_init()
authorJens Axboe <axboe@fb.com>
Fri, 6 Jun 2014 17:03:48 +0000 (11:03 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 6 Jun 2014 17:05:25 +0000 (11:05 -0600)
commit9bf8275277e96ab6efd879e031711d856128ef4b
tree26805801b0e62474c4e70bfbf5e32512d6271efa
parent027a53c84a3d84d9fa27443935728a01ac992973
blk-mq: ->timeout should be cleared in blk_mq_rq_ctx_init()

It'll be used in blk_mq_start_request() to set a potential timeout
for the request, so clear it to zero at alloc time to ensure that
we know if someone has set it or not.

Fixes random early timeouts on NVMe testing.

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