lkml.org 
[lkml]   [2010]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/8] vmscan: Do not writeback filesystem pages in direct reclaim
On Wed, Jul 21, 2010 at 04:39:56PM +0200, Johannes Weiner wrote:
> On Wed, Jul 21, 2010 at 03:31:19PM +0100, Mel Gorman wrote:
> > On Wed, Jul 21, 2010 at 04:28:44PM +0200, Johannes Weiner wrote:
> > > On Wed, Jul 21, 2010 at 02:38:57PM +0100, Mel Gorman wrote:
> > > > @@ -858,7 +872,7 @@ keep:
> > > >
> > > > free_page_list(&free_pages);
> > > >
> > > > - list_splice(&ret_pages, page_list);
> > >
> > > This will lose all retry pages forever, I think.
> > >
> >
> > Above this is
> >
> > while (!list_empty(page_list)) {
> > ...
> > }
> >
> > page_list should be empty and keep_locked is putting the pages on ret_pages
> > already so I think it's ok.
>
> But ret_pages is function-local. Putting them back on the then-empty
> page_list is to give them back to the caller, otherwise they are lost
> in a dead stack slot.
>

Bah, you're right, it is repaired now. /me slaps self. Thanks

--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab


\
 
 \ /
  Last update: 2010-07-21 17:09    [W:0.088 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site