From: Jens Axboe Date: Wed, 25 Oct 2017 15:47:20 +0000 (-0600) Subject: mq-deadline: add 'deadline' as a name alias X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4d740bc9f0319229410d11e445017f47e425dbe0;p=openwrt%2Fstaging%2Fblogic.git mq-deadline: add 'deadline' as a name alias The scheduler framework now supports looking up the appropriate scheduler with the {name,mq} tupple. We can register mq-deadline with the alias of 'deadline', so that switching to 'deadline' will do the right thing based on the type of driver attached to it. Reviewed-by: Omar Sandoval Signed-off-by: Jens Axboe --- diff --git a/block/mq-deadline.c b/block/mq-deadline.c index a1cad4331edd..0179e484ec98 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c @@ -657,6 +657,7 @@ static struct elevator_type mq_deadline = { #endif .elevator_attrs = deadline_attrs, .elevator_name = "mq-deadline", + .elevator_alias = "deadline", .elevator_owner = THIS_MODULE, }; MODULE_ALIAS("mq-deadline-iosched");