projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a22579
)
[BLOCK] elevator: Make elevator=as work again for anticipatory
author
Chuck Ebbert
<76306.1226@compuserve.com>
Mon, 16 Jan 2006 08:47:37 +0000
(09:47 +0100)
committer
Jens Axboe
<axboe@suse.de>
Mon, 16 Jan 2006 08:47:37 +0000
(09:47 +0100)
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
block/elevator.c
patch
|
blob
|
blame
|
history
diff --git
a/block/elevator.c
b/block/elevator.c
index 1d0759178e4b49710c6cb90c538fc6d0c897e126..e8025b2ec54a508a1bd5db7a23c9ff687e8923b4 100644
(file)
--- a/
block/elevator.c
+++ b/
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.
*/