forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
bfq: don't check active group if bfq.weight is not changed
Now the group scheduling in BFQ depends on the check of active group, but in most cases group scheduling is not used and the checking of active group will cause bfq_asymmetric_scenario() and its caller bfq_better_to_idle() to always return true, so the throughput will be impacted if the workload doesn't need idle (e.g. random rw) To fix that, adding check in bfq_io_set_weight_legacy() and bfq_pd_init() to check whether or not group scheduling is used (a non-default weight is used). If not, there is no need to check active group. Signed-off-by: Yu Kuai <yukuai3@huawei.com>
- Loading branch information
1 parent
a9f7c7a
commit 2a2ab6f73f0608cec85e1f15254edc78a75d0366
Showing
3 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters