From: Jens Axboe <axboe@kernel.dk>
To: Christoph Hellwig <hch@infradead.org>, Breno Leitao <leitao@debian.org>
Cc: kernel-team@meta.com,
"open list:BLOCK LAYER" <linux-block@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] elevator: do not request_module if elevator exists
Date: Fri, 11 Oct 2024 07:12:43 -0600 [thread overview]
Message-ID: <1b4889f3-3140-4855-8c74-f0c9df7318ca@kernel.dk> (raw)
In-Reply-To: <ZwjgrwSw2vUVP2cp@infradead.org>
On 10/11/24 2:24 AM, Christoph Hellwig wrote:
>> diff --git a/block/elevator.c b/block/elevator.c
>> index 4122026b11f1..1904e217505a 100644
>> --- a/block/elevator.c
>> +++ b/block/elevator.c
>> @@ -709,13 +709,16 @@ int elv_iosched_load_module(struct gendisk *disk, const char *buf,
>> size_t count)
>> {
>> char elevator_name[ELV_NAME_MAX];
>> + const char *name;
>>
>> if (!elv_support_iosched(disk->queue))
>> return -EOPNOTSUPP;
>>
>> strscpy(elevator_name, buf, sizeof(elevator_name));
>> + name = strstrip(elevator_name);
>>
>> - request_module("%s-iosched", strstrip(elevator_name));
>> + if (!__elevator_find(name))
>
> __elevator_find needs to be called with elv_list_lock.
Doh yes. Breno, I just dropped it for now, just send a v2.
--
Jens Axboe
next prev parent reply other threads:[~2024-10-11 13:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 14:15 Breno Leitao
2024-10-10 16:40 ` Jens Axboe
2024-10-11 8:24 ` Christoph Hellwig
2024-10-11 12:37 ` Breno Leitao
2024-10-11 13:12 ` Jens Axboe [this message]
2024-10-11 13:17 ` Breno Leitao
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=1b4889f3-3140-4855-8c74-f0c9df7318ca@kernel.dk \
--to=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®