Kirill Korotaev 885036d32f [PATCH] mm: __GFP_NOFAIL fix
In __alloc_pages():

if ((p->flags & (PF_MEMALLOC | PF_MEMDIE)) && !in_interrupt()) {
         /* go through the zonelist yet again, ignoring mins */
         for (i = 0; zones[i] != NULL; i++) {
                 struct zone *z = zones[i];

                 page = buffered_rmqueue(z, order, gfp_mask);
                 if (page) {
                         zone_statistics(zonelist, z);
                         goto got_pg;
                 }
         }
         goto nopage;                <<<< HERE!!! FAIL...
}

kswapd (which has PF_MEMALLOC flag) can fail to allocate memory even when
it allocates it with __GFP_NOFAIL flag.

Signed-Off-By: Pavel Emelianov <xemul@sw.ru>
Signed-Off-By: Denis Lunev <den@sw.ru>
Signed-Off-By: Kirill Korotaev <dev@sw.ru>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-13 18:14:12 -08:00
..
2005-10-29 21:40:39 -07:00
2005-06-24 00:06:41 -07:00
2005-10-29 21:40:40 -07:00
2005-10-28 08:16:51 -07:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:39 -07:00
2005-10-28 08:16:47 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:40 -07:00
2005-11-13 18:14:12 -08:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:53:37 -08:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-11-08 16:44:08 +01:00
2005-10-29 21:40:35 -07:00
2005-10-29 21:40:42 -07:00