Skip to content
Commit c6d2efdd authored by Kemeng Shi's avatar Kemeng Shi Committed by Jens Axboe
Browse files

blk-iocost: Reset vtime_base_rate in ioc_refresh_params

Since commit ac33e91e

("blk-iocost: implement vtime loss compensation")
split vtime_rate into vtime_rate and vtime_base_rate, we need reset both
vtime_base_rate and vtime_rate when device parameters are refreshed.
If vtime_base_rate is no reset here, vtime_rate will be overwritten with
old vtime_base_rate soon in ioc_refresh_vrate.

Signed-off-by: default avatarKemeng Shi <shikemeng@huawei.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20221018121932.10792-3-shikemeng@huawei.com
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ecaaaabe
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