Skip to content
Commit fe1f4526 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2149da07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment