Re: [PATCH] mm: double mark_page_accessed() in read_cache_page_async()

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

 



On Fri, 06 Jul 2007 18:03:54 +0200
Peter Zijlstra <[email protected]> wrote:

> read_cache_page_async() seems to have 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 <[email protected]>
> ---
>  mm/filemap.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> Index: linux-2.6/mm/filemap.c
> ===================================================================
> --- linux-2.6.orig/mm/filemap.c
> +++ linux-2.6/mm/filemap.c
> @@ -1588,7 +1588,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;
>  
> 

Thanks for catching this.  It is a post-2.6.21 regression.

We cannot afford to do stuff like this.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux