Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18664
b: refs/heads/master
c: 4c26458
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Ebbert authored and Linus Torvalds committed Jan 17, 2006
1 parent 663e2b3 commit 8640b52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5aeebe01cb2ba1bca4cd9b8a6e77386bd7499dc2
refs/heads/master: 4c2645830e29c082217662e7486572e9637e9f1d
7 changes: 7 additions & 0 deletions trunk/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 8640b52

Please sign in to comment.