On Sat, 26 Jun 2010, David Rientjes wrote: > On Fri, 25 Jun 2010, Christoph Lameter wrote: > > > allocpercpu() may be used during early boot after the page allocator > > has been bootstrapped but when interrupts are still off. Make sure > > that we do not do GFP_KERNEL allocations if this occurs. > Why isn't this being handled at a lower level, specifically in the slab > allocator to prevent GFP_KERNEL from being used when irqs are disabled? > We'll otherwise need to audit all slab allocations from the boot cpu for > correctness. It is handled at a lower level when slab allocates from the page allocator. But the checking logic for the proper flags passed to the slab allocator does not mask the bits and it seems that this approach is the way people want it to be. So we have to explicitly mask GFP_KERNEL in these locations. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>