Re: [PATCH -tip] mm: introduce __GFP_PANIC modifier
From: Cyrill Gorcunov
Date: Mon May 04 2009 - 10:13:22 EST
[Christoph Lameter - Mon, May 04, 2009 at 09:47:45AM -0400]
|
|
| Could you try to avoid consuming another GFP flag? __GFP_BITS_SHIFT is
| used elsewhere to figure out where to put miscellanous flags into the gfp
| mask. This is pretty limited right now and so the patch does work.
|
| But maybe we can combine some flags __GFP_NOFAIL | __GFP_REPEAT or so?
|
| __GFP_NOFAIL already has the semantics that the allocation cannot fail and
| that the page allocator must never return NULL.
|
|
As I see page allocator already quite modified in -mm tree.
Christoph will kmalloc with (__GFP_NOFAIL | __GFP_REPEAT)
inform us on exhausted memory? Or we just stuck with blank
screen instead (not blank actually but with previous messages)?
-- Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/