Patch from Klaus Hochlehnert <Mailings@kh-dev.de>:
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 29 Jun 2009 18:11:58 +0000 (18:11 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 29 Jun 2009 18:11:58 +0000 (18:11 +0000)
Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/kernel/unsupported/readahead-ubuntu-8.04-2.6.24.patch [new file with mode: 0644]

diff --git a/scst/kernel/unsupported/readahead-ubuntu-8.04-2.6.24.patch b/scst/kernel/unsupported/readahead-ubuntu-8.04-2.6.24.patch
new file mode 100644 (file)
index 0000000..f9abfbb
--- /dev/null
@@ -0,0 +1,11 @@
+--- linux-2.6.24-24.53/mm/readahead.c  2008-02-11 06:51:11.000000000 +0100
++++ linux-2.6.24-24.53.copy/mm/readahead.c     2009-06-09 21:59:13.640647726 +0200
+@@ -472,5 +472,8 @@ page_cache_async_readahead(struct addres
+       /* do read-ahead */
+       ondemand_readahead(mapping, ra, filp, true, offset, req_size);
++
++      if (PageUptodate(page))
++              blk_run_backing_dev(mapping->backing_dev_info, NULL);
+ }
+ EXPORT_SYMBOL_GPL(page_cache_async_readahead);