Home
last modified time | relevance | path

Searched hist:"5 a93b6027eb4ef5db60a4bc5bdbeba5fb9f29384" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/block/
H A Dblk-throttle.hdiff 5a93b6027eb4ef5db60a4bc5bdbeba5fb9f29384 Tue Feb 15 22:45:13 CST 2022 Ming Lei <ming.lei@redhat.com> block: don't try to throttle split bio if iops limit isn't set

We need to throttle split bio in case of IOPS limit even though the
split bio has been marked as BIO_THROTTLED since block layer
accounts split bio actually.

If only throughput throttle is setup, no need to throttle any more
if BIO_THROTTLED is set since we have accounted & considered the
whole bio bytes already.

Add one flag of THROTL_TG_HAS_IOPS_LIMIT for serving this purpose.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220216044514.2903784-8-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
H A Dblk-throttle.cdiff 5a93b6027eb4ef5db60a4bc5bdbeba5fb9f29384 Tue Feb 15 22:45:13 CST 2022 Ming Lei <ming.lei@redhat.com> block: don't try to throttle split bio if iops limit isn't set

We need to throttle split bio in case of IOPS limit even though the
split bio has been marked as BIO_THROTTLED since block layer
accounts split bio actually.

If only throughput throttle is setup, no need to throttle any more
if BIO_THROTTLED is set since we have accounted & considered the
whole bio bytes already.

Add one flag of THROTL_TG_HAS_IOPS_LIMIT for serving this purpose.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220216044514.2903784-8-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>