summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-09-21 12:53:09 +0300
committerJens Axboe <axboe@kernel.dk>2022-09-24 17:59:43 +0300
commit81c7a63abc7c0be572b4f853e913ce93a34f6e1b (patch)
tree3358a474ca304876e431085299e980128c58116e /block/blk-mq.c
parent85496749904016f36b69332f73a1cf3ecfee828f (diff)
downloadlinux-81c7a63abc7c0be572b4f853e913ce93a34f6e1b.tar.xz
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>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions