Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2
+2
block/blk-mq.c
··· 204 204 rq->sense = NULL; 205 205 206 206 INIT_LIST_HEAD(&rq->timeout_list); 207 + rq->timeout = 0; 208 + 207 209 rq->end_io = NULL; 208 210 rq->end_io_data = NULL; 209 211 rq->next_rq = NULL;