]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Add AS elevator backwards compat patch
authorChris Wright <chrisw@sous-sol.org>
Tue, 24 Jan 2006 18:43:48 +0000 (10:43 -0800)
committerChris Wright <chrisw@sous-sol.org>
Tue, 24 Jan 2006 18:43:48 +0000 (10:43 -0800)
queue/elevator-as-back-compatibility.patch [new file with mode: 0644]
queue/series

diff --git a/queue/elevator-as-back-compatibility.patch b/queue/elevator-as-back-compatibility.patch
new file mode 100644 (file)
index 0000000..f6be01c
--- /dev/null
@@ -0,0 +1,39 @@
+From stable-bounces@linux.kernel.org  Mon Jan 16 22:19:55 2006
+Message-Id: <200601170615.k0H6FDZ6028782@shell0.pdx.osdl.net>
+To: torvalds@osdl.org
+From: akpm@osdl.org
+Date: Mon, 16 Jan 2006 22:14:55 -0800
+Cc: nickpiggin@yahoo.com.au, axboe@suse.de, 76306.1226@compuserve.com, stable@kernel.org
+Subject: [PATCH] elevator=as back-compatibility
+
+From: Chuck Ebbert <76306.1226@compuserve.com>
+
+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: Chris Wright <chrisw@sous-sol.org>
+---
+ block/elevator.c |    7 +++++++
+ 1 file changed, 7 insertions(+)
+
+--- linux-2.6.15.1.orig/block/elevator.c
++++ linux-2.6.15.1/block/elevator.c
+@@ -150,6 +150,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.
+        */
index 0366f1c10fd4298aeca965d0569ef5166c9812f0..35c626b95fa43e1f540bec8b43bc3ade73234892 100644 (file)
@@ -3,3 +3,4 @@ kill-blk_attempt_remerge.patch
 input-hid-fix-an-oops-in-pid-initialization-code.patch
 fix-double-decrement-of-mqueue_mnt-mnt_count-in-sys_mq_open.patch
 fix-oops-in-ufs_fill_super-at-mount-time.patch
+elevator-as-back-compatibility.patch