All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
@ 2017-07-12 18:57 Alex Ivanov
  2017-07-12 22:51 ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Ivanov @ 2017-07-12 18:57 UTC (permalink / raw)
  To: linux-block

It's now makes sense to use elevator boot argument when blk-mq is in use,
since there is now a bunch of schedulers for it (deadline, kyber, bfq, none).

Signed-off-by: Alex Ivanov <yourbestfriend@openmailbox.org>
---
 block/elevator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/block/elevator.c b/block/elevator.c
index 4bb2f0c93fa6..ef6b27f13dfd 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -208,12 +208,12 @@ int elevator_init(struct request_queue *q, char *name)
 	}
 
 	/*
-	 * Use the default elevator specified by config boot param for
-	 * non-mq devices, or by config option. Don't try to load modules
+	 * Use the default elevator specified by config boot param
+	 * or by config option. Don't try to load modules
 	 * as we could be running off async and request_module() isn't
 	 * allowed from async.
 	 */
-	if (!e && !q->mq_ops && *chosen_elevator) {
+	if (!e && *chosen_elevator) {
 		e = elevator_get(chosen_elevator, false);
 		if (!e)
 			printk(KERN_ERR "I/O scheduler %s not found\n",
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-12 18:57 [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices Alex Ivanov
@ 2017-07-12 22:51 ` Jens Axboe
  2017-07-13 10:11   ` Johannes Thumshirn
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2017-07-12 22:51 UTC (permalink / raw)
  To: Alex Ivanov, linux-block

On 07/12/2017 12:57 PM, Alex Ivanov wrote:
> It's now makes sense to use elevator boot argument when blk-mq is in use,
> since there is now a bunch of schedulers for it (deadline, kyber, bfq, none).

No, that boot option was a mistake, let's not propagate that to mq
scheduling as well.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-12 22:51 ` Jens Axboe
@ 2017-07-13 10:11   ` Johannes Thumshirn
  2017-07-13 14:02     ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Johannes Thumshirn @ 2017-07-13 10:11 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Alex Ivanov, linux-block

On Wed, Jul 12, 2017 at 04:51:33PM -0600, Jens Axboe wrote:
> No, that boot option was a mistake, let's not propagate that to mq
> scheduling as well.

Can you please explain why? I as well have requests from our users to
select the mq schedulers on the command line.

Thanks,
	Johannes
-- 
Johannes Thumshirn                                          Storage
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg
GF: Felix Imend�rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N�rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-13 10:11   ` Johannes Thumshirn
@ 2017-07-13 14:02     ` Jens Axboe
  2017-07-14  5:12       ` Paolo Valente
  2017-07-14  6:40       ` Johannes Thumshirn
  0 siblings, 2 replies; 8+ messages in thread
From: Jens Axboe @ 2017-07-13 14:02 UTC (permalink / raw)
  To: Johannes Thumshirn; +Cc: Alex Ivanov, linux-block

On 07/13/2017 04:11 AM, Johannes Thumshirn wrote:
> On Wed, Jul 12, 2017 at 04:51:33PM -0600, Jens Axboe wrote:
>> No, that boot option was a mistake, let's not propagate that to mq
>> scheduling as well.
> 
> Can you please explain why? I as well have requests from our users to
> select the mq schedulers on the command line.

Because it sucks as an interface - there's no way to apply different
settings to different devices, and using the kernel command line to
control something like this is ugly. It never should have been done.

The sysfs interface, either manually, scripted, or through udev,
makes a lot more sense.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-13 14:02     ` Jens Axboe
@ 2017-07-14  5:12       ` Paolo Valente
  2017-07-14  6:40       ` Johannes Thumshirn
  1 sibling, 0 replies; 8+ messages in thread
From: Paolo Valente @ 2017-07-14  5:12 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Johannes Thumshirn, Alex Ivanov, linux-block


> Il giorno 13 lug 2017, alle ore 16:02, Jens Axboe <axboe@kernel.dk> ha =
scritto:
>=20
> On 07/13/2017 04:11 AM, Johannes Thumshirn wrote:
>> On Wed, Jul 12, 2017 at 04:51:33PM -0600, Jens Axboe wrote:
>>> No, that boot option was a mistake, let's not propagate that to mq
>>> scheduling as well.
>>=20
>> Can you please explain why? I as well have requests from our users to
>> select the mq schedulers on the command line.
>=20
> Because it sucks as an interface - there's no way to apply different
> settings to different devices, and using the kernel command line to
> control something like this is ugly. It never should have been done.
>=20
> The sysfs interface, either manually, scripted, or through udev,
> makes a lot more sense.
>=20

One doubt: with the new interface, and using, I guess, udev, is it
still possible to control which I/O scheduler is actually used during
all the boot process, or at least almost all of it?

Thanks,
Paolo

> --=20
> Jens Axboe
>=20

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-13 14:02     ` Jens Axboe
  2017-07-14  5:12       ` Paolo Valente
@ 2017-07-14  6:40       ` Johannes Thumshirn
  2017-07-14 14:26         ` Jens Axboe
  1 sibling, 1 reply; 8+ messages in thread
From: Johannes Thumshirn @ 2017-07-14  6:40 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Alex Ivanov, linux-block

On Thu, Jul 13, 2017 at 08:02:41AM -0600, Jens Axboe wrote:
> Because it sucks as an interface - there's no way to apply different
> settings to different devices, and using the kernel command line to
> control something like this is ugly. It never should have been done.
> 
> The sysfs interface, either manually, scripted, or through udev,
> makes a lot more sense.

Not that I disagree with your reasons, but not being able to select a
mq scheduler confuses quite some users out there.

Byte,
	Johannes
-- 
Johannes Thumshirn                                          Storage
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg
GF: Felix Imend�rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N�rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-14  6:40       ` Johannes Thumshirn
@ 2017-07-14 14:26         ` Jens Axboe
  2017-07-17  6:55           ` Johannes Thumshirn
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2017-07-14 14:26 UTC (permalink / raw)
  To: Johannes Thumshirn; +Cc: Alex Ivanov, linux-block

On 07/14/2017 12:40 AM, Johannes Thumshirn wrote:
> On Thu, Jul 13, 2017 at 08:02:41AM -0600, Jens Axboe wrote:
>> Because it sucks as an interface - there's no way to apply different
>> settings to different devices, and using the kernel command line to
>> control something like this is ugly. It never should have been done.
>>
>> The sysfs interface, either manually, scripted, or through udev,
>> makes a lot more sense.
> 
> Not that I disagree with your reasons, but not being able to select a
> mq scheduler confuses quite some users out there.

Maybe we can add something about the API being deprecated, if someone
tries to select an mq scheduler. The old scheduler will die in due
course once that path goes away, and once that happens, we can kill
the parameter.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices
  2017-07-14 14:26         ` Jens Axboe
@ 2017-07-17  6:55           ` Johannes Thumshirn
  0 siblings, 0 replies; 8+ messages in thread
From: Johannes Thumshirn @ 2017-07-17  6:55 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Alex Ivanov, linux-block

On Fri, Jul 14, 2017 at 08:26:52AM -0600, Jens Axboe wrote:
 
> Maybe we can add something about the API being deprecated, if someone
> tries to select an mq scheduler. The old scheduler will die in due
> course once that path goes away, and once that happens, we can kill
> the parameter.

Yes this sounds like a good idea.

-- 
Johannes Thumshirn                                          Storage
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg
GF: Felix Imend�rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N�rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-17  6:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 18:57 [PATCH] elevator: allow specifying elevator by config boot param for blk-mq devices Alex Ivanov
2017-07-12 22:51 ` Jens Axboe
2017-07-13 10:11   ` Johannes Thumshirn
2017-07-13 14:02     ` Jens Axboe
2017-07-14  5:12       ` Paolo Valente
2017-07-14  6:40       ` Johannes Thumshirn
2017-07-14 14:26         ` Jens Axboe
2017-07-17  6:55           ` Johannes Thumshirn

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.