[PATCH] elevator=as back-compatibility

As of 2.6.15 you need to use "anticipatory" instead of "as". Fix that up
so that `elevator=as' still works.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Chuck Ebbert and committed by Linus Torvalds 4c264583 5aeebe01

+7
+7
block/elevator.c
··· 149 if (!chosen_elevator[0]) 150 strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); 151 152 /* 153 * If the given scheduler is not available, fall back to no-op. 154 */
··· 149 if (!chosen_elevator[0]) 150 strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); 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 + 159 /* 160 * If the given scheduler is not available, fall back to no-op. 161 */