mq-deadline: Enable auto-loading when built as module
authorBen Hutchings <ben@decadent.org.uk>
Sun, 13 Aug 2017 17:03:15 +0000 (18:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Aug 2017 16:47:23 +0000 (10:47 -0600)
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 <ming.lei@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c

index c8dfddc..a1cad43 100644 (file)
@@ -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)
 {