]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: always initialize request->start_time
authorJens Axboe <axboe@fb.com>
Mon, 9 Jun 2014 15:36:53 +0000 (09:36 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 9 Jun 2014 15:36:53 +0000 (09:36 -0600)
commitd0b1e90b3f485da05dbc77e9ab35e7e19805fec6
treefd1ccfd86dc6e9687e3bf5e0f8821786d5eb0806
parent3b14f433c9c29212121d3b63352d27a42cf894f3
blk-mq: always initialize request->start_time

The blk-mq core only initializes this if io stats are enabled, since
blk-mq only reads the field in that case. But drivers could
potentially use it internally, so ensure that we always set it to
the current time when the request is allocated.

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