Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blk-iolatency: only call ktime_get() if needed
ktime_to_ns(ktime_get()), which is expensive, does not need to be called if blk_iolatency_enabled() return false in blkcg_iolatency_done_bio(). Postponing ktime_to_ns(ktime_get()) execution reduces the CPU usage when blk_iolatency is disabled. Signed-off-by: Hongnan Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information