]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: Fix IO hang for a corner case
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Thu, 8 Oct 2020 03:52:25 +0000 (11:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Oct 2020 14:01:38 +0000 (08:01 -0600)
commitded13a58eee7ebd380f999106269112f73a9041d
tree42f5930231ace93e1cb02357fecbe6f67fa17593
parent7e7b9f8437ae246e9f04c76db9a775cd6e482a44
blk-throttle: Fix IO hang for a corner case

It can not scale up in throtl_adjusted_limit() if we set bps or iops is
1, which will cause IO hang when enable low limit. Thus we should treat
1 as a illegal value to avoid this issue.

Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c