From: Chuck Ebbert <76306.1226@compuserve.com> Date: Mon, 16 Jan 2006 08:47:37 +0000 (+0100) Subject: [BLOCK] elevator: Make elevator=as work again for anticipatory X-Git-Tag: v2.6.16-rc1~1^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752a3b79630a290cbbe4731e7c61b75d4fbebc5c;p=linux-2.6 [BLOCK] elevator: Make elevator=as work again for anticipatory Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Jens Axboe --- diff --git a/block/elevator.c b/block/elevator.c index 1d0759178e..e8025b2ec5 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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. */