diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-11-26 09:16:13 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-07 21:20:31 +0100 |
commit | c09245f61c6ac4ef253a5fcf97e5bcfc0ce25fc7 (patch) | |
tree | aebe6c04e274f0688f649e98a8a1f0fc4a1fdf6f /crypto/essiv.c | |
parent | blk-iocost: Remove unnecessary advance declaration (diff) | |
download | linux-c09245f61c6ac4ef253a5fcf97e5bcfc0ce25fc7.tar.xz linux-c09245f61c6ac4ef253a5fcf97e5bcfc0ce25fc7.zip |
blk-iocost: Move the usage ratio calculation to the correct place
We only use the hweight based usage ratio to calculate the new
hweight_inuse of the iocg to decide if this iocg can donate some
surplus vtime.
Thus move the usage ratio calculation to the correct place to
avoid unnecessary calculation for some vtime shortage iocgs.
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'crypto/essiv.c')
0 files changed, 0 insertions, 0 deletions