blk-mq: don't call ktime_get_ns() if we don't need it mq-perf
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 17:50:07 +0000 (10:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Dec 2018 18:40:40 +0000 (11:40 -0700)
commit6f779d0cf293364715c29a983c66ff72279b33b5
tree9ec97a247b0e748995fafa1ed4725b16f4408613
parent2149da0748fc236b9916c53e26b3b0c9ab20a5dd
blk-mq: don't call ktime_get_ns() if we don't need it

We only need the request fields and the end_io time if we have
stats enabled, or if we have a scheduler attached as those may
use it for completion time stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c