+ mm-double-mark_page_accessed-in-read_cache_page_async.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     mm: double mark_page_accessed() in read_cache_page_async()
has been added to the -mm tree.  Its filename is
     mm-double-mark_page_accessed-in-read_cache_page_async.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: mm: double mark_page_accessed() in read_cache_page_async()
From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>

Fix a post-2.6.21 regression.

read_cache_page_async() has two invocations of mark_page_accessed() which will
launch pages right onto the active list.

Remove the first one, keeping the latter one.  This avoids marking unwanted
pages active (in the retry loop).

Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/filemap.c |    1 -
 1 files changed, 1 deletion(-)

diff -puN mm/filemap.c~mm-double-mark_page_accessed-in-read_cache_page_async mm/filemap.c
--- a/mm/filemap.c~mm-double-mark_page_accessed-in-read_cache_page_async
+++ a/mm/filemap.c
@@ -1786,7 +1786,6 @@ retry:
 	page = __read_cache_page(mapping, index, filler, data);
 	if (IS_ERR(page))
 		return page;
-	mark_page_accessed(page);
 	if (PageUptodate(page))
 		goto out;
 
_

Patches currently in -mm which might be from peterz@xxxxxxxxxxxxx are

mm-double-mark_page_accessed-in-read_cache_page_async.patch
mm-fixup-proc-vmstat-output.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux