]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: factor out code to calculate ios/bytes_allowed
authorYu Kuai <yukuai3@huawei.com>
Mon, 29 Aug 2022 02:22:39 +0000 (10:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Sep 2022 06:19:48 +0000 (00:19 -0600)
commit681cd46fff8cd81e387747c7850f2e730d3e0b74
treedc60bad94decee365519215f78077f02feb84663
parent8d6bbaada2e0a65f9012ac4c2506460160e7237a
blk-throttle: factor out code to calculate ios/bytes_allowed

No functional changes, new apis will be used in later patches to
calculate wait time for throttled bios when new configuration is
submitted.

Noted this patch also rename tg_with_in_iops/bps_limit() to
tg_within_iops/bps_limit().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220829022240.3348319-4-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c