]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: don't call ktime_get_ns() if we don't need it
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 17:50:07 +0000 (10:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Dec 2018 21:59:16 +0000 (14:59 -0700)
commit504dd0c90f48a93d95c800175ff2fb7db957d04d
tree9ec97a247b0e748995fafa1ed4725b16f4408613
parent0641fb97c4761e5032004e1533a91a76addb89e2
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.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c