public inbox for linux-block@vger.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

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox