mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Yu Kuai <yukuai@fnnas.com>,
	axboe@kernel.dk, linux-block@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: nilay@linux.ibm.com
Subject: Re: [PATCH RESEND v5 3/7] blk-mq: add a new queue sysfs attribute async_depth
Date: Mon, 17 Nov 2025 15:45:32 -0800	[thread overview]
Message-ID: <4f3ed928-2fef-469d-8bfc-76041267b1c6@acm.org> (raw)
In-Reply-To: <20251116035228.119987-4-yukuai@fnnas.com>

On 11/15/25 7:52 PM, Yu Kuai wrote:
> +static void blk_mq_limit_depth(struct blk_mq_alloc_data *data)
> +{
> +	struct elevator_mq_ops *ops;
> +
> +	/* If elevator is none, don't limit requests */

Nobody calls an I/O scheduler an elevator anymore. So I propose to
change "elevator is none" into "no I/O scheduler has been configured".

> +	/*
> +	 * Flush/passthrough requests are special and go directly to the
> +	 * dispatch list, they don't have limit.
> +	 */
"they don't have a limit" -> "are not subject to the async_depth limit".

> +	/*
> +	 * By default, sync requests have no limit, and async requests is
> +	 * limited to async_depth.
> +	 */

"is" -> "are"

 > -		/*
 > -		 * All requests use scheduler tags when an I/O scheduler is
 > -		 * enabled for the queue.
 > -		 */
 > -		data->rq_flags |= RQF_SCHED_TAGS;

Why has the above comment been removed? I think that it is useful.

Additionally, please split this patch into two patches: a first patch
that introduces the function blk_mq_limit_depth() and a second patch
with the remaining changes from this patch.

Thanks,

Bart.


  reply	other threads:[~2025-11-17 23:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-16  3:52 [PATCH RESEND v5 0/7] blk-mq: introduce new queue " Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 1/7] block: convert nr_requests to unsigned int Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 2/7] blk-mq-sched: unify elevators checking for async requests Yu Kuai
2025-11-17 23:35   ` Bart Van Assche
2025-11-18  5:56     ` Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 3/7] blk-mq: add a new queue sysfs attribute async_depth Yu Kuai
2025-11-17 23:45   ` Bart Van Assche [this message]
2025-11-16  3:52 ` [PATCH RESEND v5 4/7] kyber: covert to use request_queue->async_depth Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 5/7] mq-deadline: " Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 6/7] block, bfq: convert " Yu Kuai
2025-11-16  3:52 ` [PATCH RESEND v5 7/7] blk-mq: add documentation for new queue attribute async_dpeth Yu Kuai

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=4f3ed928-2fef-469d-8bfc-76041267b1c6@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nilay@linux.ibm.com \
    --cc=yukuai@fnnas.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®