]> git.baikalelectronics.ru Git - kernel.git/commit
block/bfq_wf2q: correct weight to ioprio
authorYahu Gao <gaoyahu19@gmail.com>
Fri, 7 Jan 2022 06:58:59 +0000 (14:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 03:09:14 +0000 (20:09 -0700)
commit9bdc45e0576f2b846f46f2b43868d63fa57c7ae8
tree0b9b3a75437796bd4bcdff7f28a18df6e9118119
parent5951bb25c30afa002f71c4728fce2f0182b78718
block/bfq_wf2q: correct weight to ioprio

The return value is ioprio * BFQ_WEIGHT_CONVERSION_COEFF or 0.
What we want is ioprio or 0.
Correct this by changing the calculation.

Signed-off-by: Yahu Gao <gaoyahu19@gmail.com>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Link: https://lore.kernel.org/r/20220107065859.25689-1-gaoyahu19@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-wf2q.c