[BLOCK] elevator: if specified scheduler is not found, fall back to default

Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
Jens Axboe 2006-01-16 09:48:58 +01:00
parent 752a3b7963
commit b7bfcf7cbd
1 changed files with 2 additions and 2 deletions

View File

@ -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)