Thread (15 messages) 15 messages, 5 authors, 2012-12-28

Re: [PATCH 2/3] mm, bootmem: panic in bootmem alloc functions even if slab is available

From: Sasha Levin <hidden>
Date: 2012-12-27 23:08:39
Also in: lkml

On 12/27/2012 06:04 PM, David Rientjes wrote:
On Thu, 27 Dec 2012, Sasha Levin wrote:
quoted
That's exactly what happens with the patch. Note that in the current upstream
version there are several slab checks scattered all over.

In this case for example, I'm removing it from __alloc_bootmem_node(), but the
first code line of__alloc_bootmem_node_nopanic() is:

        if (WARN_ON_ONCE(slab_is_available()))
                return kzalloc(size, GFP_NOWAIT);
You're only talking about mm/bootmem.c and not mm/nobootmem.c, and notice 
that __alloc_bootmem_node() does not call __alloc_bootmem_node_nopanic(), 
it calls ___alloc_bootmem_node_nopanic().
Holy cow, this is an underscore hell.


Thanks,
Sasha

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help