Re: [RFC PATCH] blk-iocost: Optimize the ioc_refreash_vrate() function

2020-12-03 Thread Baolin Wang
在 2020/12/3 4:32, Tejun Heo 写道: On Sun, Nov 29, 2020 at 10:37:18AM +0800, Baolin Wang wrote: The ioc_refreash_vrate() will only be called in ioc_timer_fn() after starting a new period or stopping the period. So when starting a new period, the variable 'pleft' in ioc_refreash_vrate() is

Re: [RFC PATCH] blk-iocost: Optimize the ioc_refreash_vrate() function

2020-12-02 Thread Tejun Heo
On Sun, Nov 29, 2020 at 10:37:18AM +0800, Baolin Wang wrote: > The ioc_refreash_vrate() will only be called in ioc_timer_fn() after > starting a new period or stopping the period. > > So when starting a new period, the variable 'pleft' in ioc_refreash_vrate() > is always the period's time, which

[RFC PATCH] blk-iocost: Optimize the ioc_refreash_vrate() function

2020-11-28 Thread Baolin Wang
The ioc_refreash_vrate() will only be called in ioc_timer_fn() after starting a new period or stopping the period. So when starting a new period, the variable 'pleft' in ioc_refreash_vrate() is always the period's time, which means if the abs(ioc->vtime_err) is less than the period's time, the