]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: don't check whether or not lower limit is valid if CONFIG_BLK_DEV_THROT...
authorYu Kuai <yukuai3@huawei.com>
Thu, 26 Nov 2020 03:18:34 +0000 (11:18 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Dec 2020 19:44:20 +0000 (12:44 -0700)
commit97a3a040bb1dd5c68d03f2e9b018eb4b98916f8a
tree1276fc9123fe78d2ac96b50e9b913063161d919f
parent471efaa5f393091d1af723d7c5d859517dbd167e
blk-throttle: don't check whether or not lower limit is valid if CONFIG_BLK_DEV_THROTTLING_LOW is off

blk_throtl_update_limit_valid() will search for descendants to see if
'LIMIT_LOW' of bps/iops and READ/WRITE is nonzero. However, they're always
zero if CONFIG_BLK_DEV_THROTTLING_LOW is not set, furthermore, a lot of
time will be wasted to iterate descendants.

Thus do nothing in blk_throtl_update_limit_valid() in such situation.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c