diff options
author | Jens Axboe <axboe@suse.de> | 2006-01-16 09:48:58 +0100 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-01-16 09:48:58 +0100 |
commit | b7bfcf7cbd58d2a64aa46f3b4bec921e346e604f (patch) | |
tree | e81e63cf1d7af208dc3ea996a417b528a6a8c0e1 /block | |
parent | 752a3b79630a290cbbe4731e7c61b75d4fbebc5c (diff) | |
download | op-kernel-dev-b7bfcf7cbd58d2a64aa46f3b4bec921e346e604f.zip op-kernel-dev-b7bfcf7cbd58d2a64aa46f3b4bec921e346e604f.tar.gz |
[BLOCK] elevator: if specified scheduler is not found, fall back to default
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block')
-rw-r--r-- | block/elevator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/elevator.c b/block/elevator.c index e8025b2..c9f424d 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -157,12 +157,12 @@ static void elevator_setup_default(void) strcpy(chosen_elevator, "anticipatory"); /* - * If the given scheduler is not available, fall back to no-op. + * If the given scheduler is not available, fall back to the default */ if ((e = elevator_find(chosen_elevator))) elevator_put(e); else - strcpy(chosen_elevator, "noop"); + strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); } static int __init elevator_setup(char *str) |