Skip to content
Commit e1640949 authored by Jens Axboe's avatar Jens Axboe
Browse files

elevator: make elevator_get() attempt to load the appropriate module



Currently we fail if someone requests a valid io scheduler, but it's
modular and not currently loaded. That can happen from a driver init
asking for a different scheduler, or online switching through sysfs
as requested by a user.

This patch makes elevator_get() request_module() to attempt to load
the appropriate module, instead of requiring that done manually.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent ffc4e759
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment