mbox series

[-next,v4,0/4] bugfix for blk-throttle

Message ID 20220523082633.2324980-1-yukuai3@huawei.com (mailing list archive)
Headers show
Series bugfix for blk-throttle | expand

Message

Yu Kuai May 23, 2022, 8:26 a.m. UTC
Changes in v4:
 - add reviewed-by tag for patch 1
 - add patch 2,3
 - use a different way to fix io hung in patch 4
Changes in v3:
 - fix a check in patch 1
 - fix link err in patch 2 on 32-bit platform
 - handle overflow in patch 2
Changes in v2:
 - use a new solution suggested by Ming
 - change the title of patch 1
 - add patch 2

Patch 1 fix that blk-throttle can't work if multiple bios are throttle,
Patch 2 fix overflow while calculating wait time
Patch 3,4 fix io hung due to configuration updates.

Previous version:
v1: https://lore.kernel.org/all/20220517134909.2910251-1-yukuai3@huawei.com/
v2: https://lore.kernel.org/all/20220518072751.1188163-1-yukuai3@huawei.com/
v3: https://lore.kernel.org/all/20220519085811.879097-1-yukuai3@huawei.com/

Yu Kuai (4):
  blk-throttle: fix that io throttle can only work for single bio
  blk-throttle: prevent overflow while calculating wait time
  blk-throttle: factor out code to calculate ios/bytes_allowed
  blk-throttle: fix io hung due to config updates

 block/blk-throttle.c | 121 ++++++++++++++++++++++++++++++++-----------
 block/blk-throttle.h |   4 ++
 2 files changed, 94 insertions(+), 31 deletions(-)