From: Nilay Shroff <nilay@linux.ibm.com>
To: Qiliang Yuan <qiliang.yuan@linux.dev>,
Jens Axboe <axboe@kernel.dk>, Damien Le Moal <dlemoal@kernel.org>,
Ming Lei <tom.leiming@gmail.com>, Hannes Reinecke <hare@suse.de>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] block: don't request a module for the none elevator
Date: Fri, 13 Nov 2026 14:25:22 +0530 [thread overview]
Message-ID: <0975a9ae-d73f-4592-a715-55a52b6e143c@linux.ibm.com> (raw)
In-Reply-To: <20261111-bug-block-elevator-unchanged-v1-1-583198bd4e21@linux.dev>
On 11/12/26 8:30 AM, Qiliang Yuan wrote:
> elv_iosched_store() calls elv_iosched_load_module() for the requested
> name before anything else, and loads "<name>-iosched" if no elevator
> type of that name is registered. "none" never is, so every write of
> "none" to queue/scheduler ends up in request_module("none-iosched").
>
> That runs a modprobe helper which can never find the module, and adds
> several milliseconds to every switch to "none", including rewrites of
> it by udev rules or tuning tools that set the scheduler on each disk.
>
> Return early for "none", like elevator_change() did before the module
> loading moved into elv_iosched_load_module().
>
> Writing queue/scheduler of a null_blk disk 20 times takes (median):
>
> operation before (ms) after (ms) change
> none -> none 13.09 9.06 -31%
> mq-deadline -> none 11.99 7.96 -34%
>
> Fixes: 734e1a8603128 ("block: Prevent deadlocks when switching elevators")
> Signed-off-by: Qiliang Yuan<qiliang.yuan@linux.dev>
Looks good to me:
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
next prev parent reply other threads:[~2026-11-13 8:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 3:00 [PATCH 0/2] block: make rewriting the current I/O scheduler cheap again Qiliang Yuan
2026-11-12 3:00 ` [PATCH 1/2] block: don't request a module for the none elevator Qiliang Yuan
2026-11-12 14:03 ` Christoph Hellwig
2026-11-13 8:55 ` Nilay Shroff [this message]
2026-11-12 3:00 ` [PATCH 2/2] block: return early when the elevator doesn't change Qiliang Yuan
2026-11-12 14:05 ` Christoph Hellwig
2026-11-12 14:03 ` [PATCH 0/2] block: make rewriting the current I/O scheduler cheap again Christoph Hellwig
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=0975a9ae-d73f-4592-a715-55a52b6e143c@linux.ibm.com \
--to=nilay@linux.ibm.com \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qiliang.yuan@linux.dev \
--cc=tom.leiming@gmail.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®