blk-mq: fix initializing request's start time
authorMing Lei <tom.leiming@gmail.com>
Fri, 24 Jan 2014 21:16:27 +0000 (13:16 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:41 +0000 (12:54 -0600)
commitbf97bf369218e50fde38af0dd600731d37134dcf
treee6f251968dca286e9e2ca03db53f5d37e3fa43f6
parent858e5b30103bc54e75b347803ecf8c5fbc6a6365
blk-mq: fix initializing request's start time

blk_rq_init() is called in req's complete handler to initialize
the request, so the members of start_time and start_time_ns might
become inaccurate when it is allocated in future.

The patch initializes the two members in blk_mq_rq_ctx_init() to
fix the problem.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c