diff options
| author | Tejun Heo <tj@kernel.org> | 2013-05-14 13:52:38 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-18 12:46:23 +0200 |
| commit | 04ae802fe2cb35c04c28d14584448468acdc478b (patch) | |
| tree | eeeb5c8d02c066891b620aaa13875f916cd53ae1 /include | |
| parent | 477a8d60108105ed6090e83da31fb23c29b0f155 (diff) | |
blk-throttle: make blk_throtl_bio() ready for hierarchy
Currently, blk_throtl_bio() issues the passed in bio directly if it's
within limits of its associated tg (throtl_grp). This behavior
becomes incorrect with hierarchy support as the bio should be
accounted to and throttled by the ancestor throtl_grps too.
This patch makes the direct issue path of blk_throtl_bio() to loop
until it reaches the top-level service_queue or gets throttled. If
the former, the bio can be issued directly; otherwise, it gets queued
at the first layer it was above limits.
As tg->parent_sq is always the top-level service queue currently, this
patch in itself doesn't make any behavior differences.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
