]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
block, bfq: do not idle if only one group is activated
authorYu Kuai <yukuai3@huawei.com>
Fri, 16 Sep 2022 07:19:40 +0000 (15:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 13:09:44 +0000 (07:09 -0600)
commiteed3ecc991c90a4a0ce32ea2b35378dc351f012b
tree6332d1cdea891dbfb7911168d19b5000510a37c6
parent71f8ca77cb8764d46f656b725999e8b8b1aec215
block, bfq: do not idle if only one group is activated

Now that root group is counted into 'num_groups_with_pending_reqs',
'num_groups_with_pending_reqs > 0' is always true in
bfq_asymmetric_scenario(). Thus change the condition to '> 1'.

On the other hand, this change can enable concurrent sync io if only
one group is activated.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Link: https://lore.kernel.org/r/20220916071942.214222-5-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c