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>
Mon, 30 Mar 2015 18:54:52 +0000 (12:54 -0600)
commit9ce2ba6facba5e194f655f7e0f7188d79cb0b4ae
tree37cbb04a0015c1f65631f1e689c0ab25501a1284
parent0df0c987e014c52f4be465b45ddaa2e882e4f790
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