Skip to content

Commit

Permalink
mq-deadline: add 'deadline' as a name alias
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Oct 25, 2017
1 parent 8ac0d9a commit 4d740bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/mq-deadline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4d740bc

Please sign in to comment.