Re: [patch v11 0/6] support concurrent sync io for bfq on a specail occasion

From: Yu Kuai
Date: Tue Nov 01 2022 - 07:40:08 EST


Hi, Jens

在 2022/09/16 15:19, Yu Kuai 写道:
From: Yu Kuai <yukuai3@xxxxxxxxxx>


Currently, bfq can't handle sync io concurrently as long as they
are not issued from root group. This is because
'bfqd->num_groups_with_pending_reqs > 0' is always true in
bfq_asymmetric_scenario().

The way that bfqg is counted into 'num_groups_with_pending_reqs':

Before this patchset:
1) root group will never be counted.
2) Count if bfqg or it's child bfqgs have pending requests.
3) Don't count if bfqg and it's child bfqgs complete all the requests.

After this patchset:
1) root group is counted.
2) Count if bfqg has pending requests.
3) Don't count if bfqg complete all the requests.

With the above changes, concurrent sync io can be supported if only
one group is activated.

Can you apply this patchset?

Thanks,
Kuai