Skip to content

A few bugfix and cleanup patches for blk-throttle

Kemeng Shi cgroups linux-block lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 8 repliesIn review
  2. v111 patches 18 repliesSuperseded

Changes in v2 from the cover letter

-Thanks for the review and advice from Tejun. The corrected comment of
"blk-throttle: correct stale comment in throtl_pd_init" and the solution of "blk-throttle: Fix that bps of child could exceed bps limited in parent" are from reply of Tejun.
-Collect Ack from Tejun.
-Fix the compile problem when CONFIG_BLK_DEV_THROTTLING_LOW is set. -Drop "blk-throttle: Limit whole system if root group is configured
when on the default hierarchy", "blk-throttle: remove unnecessary check for validation of limit index" and "blk-throttle: remove unused variable td in tg_update_has_rules"
-Add "blk-throttle: correct stale comment in throtl_pd_init" and
"blk-throttle: avoid dead code in throtl_hierarchy_can_upgrade"
-Use solution that set the BIO_BPS_THROTTLED flag only when the bio
traversed the entire tree to fix that bps of child could exceed bps limited in parent in patch 2/10.
-Improve the description and comment of most commits.
---

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10blk-throttle: correct stale comment in throtl_pd_initblock/blk-throttle.c+3 -21 reply
2/10blk-throttle: Fix that bps of child could exceed bps limited in parentblock/blk-throttle.c+1 -11 reply
3/10blk-throttle: ignore cgroup without io queued in blk_throtl_cancel_biosblock/blk-throttle.c+12 -10 replies
4/10blk-throttle: correct calculation of wait time in tg_may_dispatchblock/blk-throttle.c+13 -251 reply
5/10blk-throttle: simpfy low limit reached check in throtl_tg_can_upgradeblock/blk-throttle.c+18 -131 reply
6/10blk-throttle: fix typo in comment of throtl_adjusted_limitblock/blk-throttle.c+1 -10 replies
7/10blk-throttle: remove incorrect comment for tg_last_low_overflow_timeblock/blk-throttle.c+0 -10 replies
8/10blk-throttle: remove repeat check of elapsed time from last upgrade in throtl_hierarchy_can_downgradeblock/blk-throttle.c+6 -21 reply
9/10blk-throttle: Use more siutable time_after check for update of slice_startblock/blk-throttle.c+1 -11 reply
10/10blk-throttle: avoid dead code in throtl_hierarchy_can_upgradeblock/blk-throttle.c+1 -12 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchTejun Heo
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] A few bugfix and cleanup patches for blk-throttle

Hi, this series contain a few patches to fix problem when on the default hierarchy, corrent comment and so on. More detail can be found in respective changelogs. Thanks.

---
V1->V2:
-Thanks for the review and advice from Tejun. The corrected comment of
"blk-throttle: correct stale comment in throtl_pd_init" and the solution of "blk-throttle: Fix that bps of child could exceed bps limited in parent" are from reply of Tejun.
-Collect Ack from Tejun.
-Fix the compile problem when CONFIG_BLK_DEV_THROTTLING_LOW is set. -Drop "blk-throttle: Limit whole system if root group is configured
when on the default hierarchy", "blk-throttle: remove unnecessary check for validation of limit index" and "blk-throttle: remove unused variable td in tg_update_has_rules"
-Add "blk-throttle: correct stale comment in throtl_pd_init" and
"blk-throttle: avoid dead code in throtl_hierarchy_can_upgrade"
-Use solution that set the BIO_BPS_THROTTLED flag only when the bio
traversed the entire tree to fix that bps of child could exceed bps limited in parent in patch 2/10.
-Improve the description and comment of most commits.
---

Kemeng Shi (10):
blk-throttle: correct stale comment in throtl_pd_init
blk-throttle: Fix that bps of child could exceed bps limited in parent
blk-throttle: ignore cgroup without io queued in
blk_throtl_cancel_bios
blk-throttle: correct calculation of wait time in tg_may_dispatch
blk-throttle: simpfy low limit reached check in throtl_tg_can_upgrade
blk-throttle: fix typo in comment of throtl_adjusted_limit
blk-throttle: remove incorrect comment for tg_last_low_overflow_time
blk-throttle: remove repeat check of elapsed time from last upgrade in
throtl_hierarchy_can_downgrade
blk-throttle: Use more siutable time_after check for update of
slice_start
blk-throttle: avoid dead code in throtl_hierarchy_can_upgrade

 block/blk-throttle.c | 104 +++++++++++++++++++++++--------------------
 1 file changed, 56 insertions(+), 48 deletions(-)
Signature · 1 line
2.30.0