]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iocost: make iocg_kick_waitq() call iocg_kick_delay() after paying debt
authorTejun Heo <tj@kernel.org>
Tue, 1 Sep 2020 18:52:37 +0000 (14:52 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 01:38:31 +0000 (19:38 -0600)
commit3ebe04dd32a117f149f17425641b2827afc5b165
treed6a7de2c2d73d3744835b910d822af19697b1be6
parent167cf33cbb99df6acda65c2cfed78c4a938871f9
blk-iocost: make iocg_kick_waitq() call iocg_kick_delay() after paying debt

iocg_kick_waitq() is the function which pays debt and iocg_kick_delay()
updates the actual delay status accordingly. If iocg_kick_delay() is not
called after iocg_kick_delay() updated debt, unnecessarily large delays can
be applied temporarily.

Let's make sure such conditions don't occur by making iocg_kick_waitq()
always call iocg_kick_delay() after paying debt.

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