Searched hist:"81 c7a63abc7c0be572b4f853e913ce93a34f6e1b" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/block/ |
H A D | blk-throttle.h | diff 81c7a63abc7c0be572b4f853e913ce93a34f6e1b Wed Sep 21 04:53:09 CDT 2022 Yu Kuai <yukuai3@huawei.com> blk-throttle: improve bypassing bios checkings
"tg->has_rules" is extended to "tg->has_rules_iops/bps", thus bios that don't need to be throttled can be checked accurately.
With this patch, bio will be throttled if:
1) Bio is read/write, and corresponding read/write iops limit exist. 2) If corresponding doesn't exist, corresponding bps limit exist and bio is not throttled before.
Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20220921095309.1481289-3-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
H A D | blk-throttle.c | diff 81c7a63abc7c0be572b4f853e913ce93a34f6e1b Wed Sep 21 04:53:09 CDT 2022 Yu Kuai <yukuai3@huawei.com> blk-throttle: improve bypassing bios checkings
"tg->has_rules" is extended to "tg->has_rules_iops/bps", thus bios that don't need to be throttled can be checked accurately.
With this patch, bio will be throttled if:
1) Bio is read/write, and corresponding read/write iops limit exist. 2) If corresponding doesn't exist, corresponding bps limit exist and bio is not throttled before.
Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20220921095309.1481289-3-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|