blk-iocost: use WEIGHT_ONE based fixed point number for weights
authorTejun Heo <tj@kernel.org>
Tue, 1 Sep 2020 18:52:39 +0000 (14:52 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 01:38:32 +0000 (19:38 -0600)
commitbd0adb91a68b2fbf384ace5287bb46f135e8d889
tree4640dfadad0b02c2103447457bee5e04fb667287
parentfe20cdb516377e6ac6300254d5ca0dd7d8621ea8
blk-iocost: use WEIGHT_ONE based fixed point number for weights

To improve weight donations, we want to able to scale inuse with a greater
accuracy and down below 1. Let's make non-hierarchical weights to use
WEIGHT_ONE based fixed point numbers too like hierarchical ones.

This doesn't cause any behavior changes yet.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c