diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-11-26 16:16:13 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-07 13:20:31 -0700 |
commit | c09245f61c6ac4ef253a5fcf97e5bcfc0ce25fc7 (patch) | |
tree | aebe6c04e274f0688f649e98a8a1f0fc4a1fdf6f /arch/sparc/kernel/hvapi.c | |
parent | 647c9f03b2b66cf1f505208c313998fc833ed28b (diff) |
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 'arch/sparc/kernel/hvapi.c')
0 files changed, 0 insertions, 0 deletions