From 52c786d105a53f4077eecc301c20313f06bd173d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 29 Jun 2009 18:11:58 +0000 Subject: [PATCH] Patch from Klaus Hochlehnert : Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- .../unsupported/readahead-ubuntu-8.04-2.6.24.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scst/kernel/unsupported/readahead-ubuntu-8.04-2.6.24.patch 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 index 000000000..f9abfbbde --- /dev/null +++ b/scst/kernel/unsupported/readahead-ubuntu-8.04-2.6.24.patch @@ -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);