Re: [PATCH v2] blk-iolatency: postpone ktime_get() execution until blk_iolatency_enabled() return true

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux