elevator: make elevator_get() attempt to load the appropriate module
authorJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 09:20:37 +0000 (10:20 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 09:20:37 +0000 (10:20 +0100)
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: Jens Axboe <jens.axboe@oracle.com>
block/elevator.c

Simple merge