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

From: Rohit Seth
Date: Wed Nov 23 2005 - 13:10:26 EST

On Tue, 2005-11-22 at 21:58 -0800, Andrew Morton wrote:
> Andrew Morton <akpm@xxxxxxxx> 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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at