From 7f4bb2232457b5b95b3db1410c512e19ea66cc42 Mon Sep 17 00:00:00 2001 From: Chuck Ebbert <76306.1226@compuserve.com> Date: Mon, 16 Jan 2006 09:47:37 +0100 Subject: [PATCH] --- yaml --- r: 18736 b: refs/heads/master c: 752a3b79630a290cbbe4731e7c61b75d4fbebc5c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/block/elevator.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3327afb7589a..8d430b1095fa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5a225791374dca35bba871a007c78a3d0b14b559 +refs/heads/master: 752a3b79630a290cbbe4731e7c61b75d4fbebc5c diff --git a/trunk/block/elevator.c b/trunk/block/elevator.c index 1d0759178e4b..e8025b2ec54a 100644 --- a/trunk/block/elevator.c +++ b/trunk/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. */