[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <p73ps1hztwp.fsf@bingen.suse.de>
Date: 21 Aug 2007 01:08:06 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Christoph Lameter <clameter@....com>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC 7/7] Switch of PF_MEMALLOC during writeout
Christoph Lameter <clameter@....com> writes:
> Switch off PF_MEMALLOC during both direct and kswapd reclaim.
>
> This works because we are not holding any locks at that point because
> reclaim is essentially complete. The write occurs when the memory on
> the zones is at the high water mark so it is unlikely that writeout
> will get into trouble. If so then reclaim can be called recursively to
> reclaim more pages.
What would stop multiple recursions in extreme low memory cases? Seems
risky to me and risking stack overflow. Perhaps define another flag to catch that?
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists