diff options
author | Jens Axboe <axboe@kernel.dk> | 2017-10-25 09:47:20 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-25 12:36:55 -0600 |
commit | 4d740bc9f0319229410d11e445017f47e425dbe0 (patch) | |
tree | 8c3e10bf4bc781bd1fbecfc335411ca2775b4ceb /block/mq-deadline.c | |
parent | 8ac0d9a81edf2ef4a2268b65b802a6b856dc77e6 (diff) | |
download | linux-stable-4d740bc9f0319229410d11e445017f47e425dbe0.tar.gz linux-stable-4d740bc9f0319229410d11e445017f47e425dbe0.tar.bz2 linux-stable-4d740bc9f0319229410d11e445017f47e425dbe0.zip |
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 <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/mq-deadline.c')
-rw-r--r-- | block/mq-deadline.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |