]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix initializing request's start time
authorMing Lei <tom.leiming@gmail.com>
Fri, 3 Jan 2014 17:00:08 +0000 (10:00 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Jan 2014 17:00:08 +0000 (10:00 -0700)
commitb02a72110bba879a70e44650ccb013f2482c934e
tree4037e52bedcd991c89f789a99d8723638aed80e6
parent0949ffd25051b83c05eea050534e45100de59442
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