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, 30 Mar 2015 18:54:52 +0000 (12:54 -0600)
commit8d55981644465538b374a902e7b5e72cbb4a97cd
treef3eb637e2f2d868b3188f1cf65162fa8b9cf9d6f
parent9ce2ba6facba5e194f655f7e0f7188d79cb0b4ae
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