On 7/1/20 2:09 AM, Hongnan Li wrote: > ktime_to_ns(ktime_get()) which is expensive do not need to be executed if > blk_iolatency_enabled() return false in blkcg_iolatency_done_bio(). > Postponing ktime_to_ns(ktime_get()) execution can reduce CPU usage > when blk_iolatency was disabled. > > --- > V2: > 1.Fix compile warnings. > > Signed-off-by: Hongnan Li <hongnan.li@xxxxxxxxxxxxxxxxx> I've applied this (rewrote header+commit message somewhat). But a note for the future - anything below the first --- is removed, so you'll need to put your SOB right below the commit message. And the v2 etc info should go here: > --- > block/blk-iolatency.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) instead of having two --- sections. -- Jens Axboe