summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2020-09-18 21:41:27 +0300
committerJens Axboe <axboe@kernel.dk>2020-09-25 17:35:02 +0300
commitbec02dbbafad534674309f8b948094900f456797 (patch)
tree964cf1a1fd23ca0155677c8cdf536df0c78993be /block/blk-mq.c
parentc5a6561b8d99ea7d8df21308249ce05bce3dd466 (diff)
downloadlinux-bec02dbbafad534674309f8b948094900f456797.tar.xz
iocost: consider iocgs with active delays for debt forgiveness
An iocg may have 0 debt but non-zero delay. The current debt forgiveness logic doesn't act on such iocgs. This can lead to unexpected behaviors - an iocg with a little bit of debt will have its delay canceled through debt forgiveness but one w/o any debt but active delay will have to wait out until its delay decays out. This patch updates the debt handling logic so that it treats delays the same as debts. If either debt or delay is active, debt forgiveness logic kicks in and acts on both the same way. Also, avoid turning the debt and delay directly to zero as that can confuse state transitions. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions