Re: [PATCH]: Free pages from local pcp lists under tight memory conditions

Rohit Seth
2005-11-23T18:17:00Z

On Tue, 2005-11-22 at 21:58 -0800, Andrew Morton wrote:
> Andrew Morton <akpm@osdl.org> wrote:
> >
> > The `while' loop worries me for some reason, so I wimped out and just tried
> > the remote drain once.
>
> Even the `goto restart' which is in this patch worries me from a livelock
> POV. Perhaps we should only ever run drain_all_local_pages() once per
> __alloc_pages() invokation.
> And perhaps we should run drain_all_local_pages() for GFP_ATOMIC or
> PF_MEMALLOC attempts too.

Good point for PF_MEMALLOC scenario.

-rohit