Skip to content

Commit

Permalink
[BLOCK] elevator: Make elevator=as work again for anticipatory
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Chuck Ebbert authored and Jens Axboe committed Jan 16, 2006
1 parent 5a22579 commit 752a3b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 752a3b7

Please sign in to comment.