From: Ben Hutchings Date: Sun, 13 Aug 2017 17:03:15 +0000 (+0100) Subject: mq-deadline: Enable auto-loading when built as module X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7de967e76fce652f9e8f3594c97ae132e3a0833a;p=linux.git mq-deadline: Enable auto-loading when built as module The block core requests modules with the "-iosched" name suffix, but mq-deadline does not have that suffix. Add an alias. Fixes: 945ffb60c11d ("mq-deadline: add blk-mq adaptation of the deadline ...") Reviewed-by: Ming Lei Signed-off-by: Ben Hutchings Signed-off-by: Jens Axboe --- diff --git a/block/mq-deadline.c b/block/mq-deadline.c index c8dfddc4ba8b3..a1cad4331eddc 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c @@ -659,6 +659,7 @@ static struct elevator_type mq_deadline = { .elevator_name = "mq-deadline", .elevator_owner = THIS_MODULE, }; +MODULE_ALIAS("mq-deadline-iosched"); static int __init deadline_init(void) {