Commit 752a3b79 authored by Chuck Ebbert's avatar Chuck Ebbert Committed by Jens Axboe

[BLOCK] elevator: Make elevator=as work again for anticipatory

Signed-off-by: default avatarChuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent 5a225791
......@@ -149,6 +149,13 @@ static void elevator_setup_default(void)
if (!chosen_elevator[0])
strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED);
/*
* Be backwards-compatible with previous kernels, so users
* won't get the wrong elevator.
*/
if (!strcmp(chosen_elevator, "as"))
strcpy(chosen_elevator, "anticipatory");
/*
* If the given scheduler is not available, fall back to no-op.
*/
......
Markdown is supported
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