All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Yu Kuai <yukuai3@huawei.com>
Cc: paolo.valente@linaro.org, jack@suse.cz, axboe@kernel.dk,
	tj@kernel.org, linux-block@vger.kernel.org,
	cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
	yi.zhang@huawei.com
Subject: Re: [PATCH -next v8 4/4] block, bfq: do not idle if only one group is activated
Date: Wed, 1 Jun 2022 10:38:29 +0200	[thread overview]
Message-ID: <20220601083829.ywv4z5yfdmslcihv@quack3.lan> (raw)
In-Reply-To: <20220531140858.3324294-5-yukuai3@huawei.com>

On Tue 31-05-22 22:08:58, Yu Kuai wrote:
> 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>

Looks good. Feel free to add:

Reviewed-by: Jan Kara <jack@suse.cz>

Just one language fixup below:

> diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
> index 03b04892440c..d4aa8421968d 100644
> --- a/block/bfq-iosched.c
> +++ b/block/bfq-iosched.c
> @@ -820,7 +820,7 @@ bfq_pos_tree_add_move(struct bfq_data *bfqd, struct bfq_queue *bfqq)
>   * much easier to maintain the needed state:
>   * 1) all active queues have the same weight,
>   * 2) all active queues belong to the same I/O-priority class,
> - * 3) there are no active groups.
> + * 3) there are one active groups at most.
         ^^^ "there is at most one active group"

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

      reply	other threads:[~2022-06-01  8:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31 14:08 [PATCH -next v8 0/4] support concurrent sync io for bfq on a specail occasion Yu Kuai
2022-05-31 14:08 ` Yu Kuai
2022-05-31 14:08 ` [PATCH -next v8 1/4] block, bfq: support to track if bfqq has pending requests Yu Kuai
2022-05-31 14:08   ` Yu Kuai
2022-06-01  8:31   ` Jan Kara
2022-05-31 14:08 ` [PATCH -next v8 2/4] block, bfq: record how many queues have " Yu Kuai
2022-05-31 14:08   ` Yu Kuai
2022-06-01  8:35   ` Jan Kara
2022-06-01  8:35     ` Jan Kara
2022-06-01 10:58     ` Yu Kuai
2022-06-01 10:58       ` Yu Kuai
2022-05-31 14:08 ` [PATCH -next v8 3/4] block, bfq: refactor the counting of 'num_groups_with_pending_reqs' Yu Kuai
2022-05-31 14:08   ` Yu Kuai
2022-06-01  8:37   ` Jan Kara
2022-05-31 14:08 ` [PATCH -next v8 4/4] block, bfq: do not idle if only one group is activated Yu Kuai
2022-05-31 14:08   ` Yu Kuai
2022-06-01  8:38   ` Jan Kara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220601083829.ywv4z5yfdmslcihv@quack3.lan \
    --to=jack@suse.cz \
    --cc=axboe@kernel.dk \
    --cc=cgroups@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paolo.valente@linaro.org \
    --cc=tj@kernel.org \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.