diff options
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/block/elevator.c b/block/elevator.c index 1d0759178e4b..e8025b2ec54a 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -149,6 +149,13 @@ static void elevator_setup_default(void) | |||
149 | if (!chosen_elevator[0]) | 149 | if (!chosen_elevator[0]) |
150 | strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); | 150 | strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); |
151 | 151 | ||
152 | /* | ||
153 | * Be backwards-compatible with previous kernels, so users | ||
154 | * won't get the wrong elevator. | ||
155 | */ | ||
156 | if (!strcmp(chosen_elevator, "as")) | ||
157 | strcpy(chosen_elevator, "anticipatory"); | ||
158 | |||
152 | /* | 159 | /* |
153 | * If the given scheduler is not available, fall back to no-op. | 160 | * If the given scheduler is not available, fall back to no-op. |
154 | */ | 161 | */ |