lkml.org 
[lkml]   [2009]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [GIT PULL v2] Early SLAB fixes for 2.6.31
From
Date
On Mon, 2009-06-15 at 13:23 +0200, Nick Piggin wrote:
> > I think the main problem isn't necessarily init code per se, but the
> > pile of -common- code that can be called both at init time and
> later.
>
> Just seems bogus argument. Everwhere else that does this (ie.
> allocations that are called from multiple allocation contexts)
> passes correct gfp flags down.

So you say we should create new variants of all these APIs that take gfp
flags as arguments just because they might be called early during boot :

- All the vmalloc interfaces (__get_vm_area() and it's 5 or 6 variants)
- Allocation of PCI host bridges data structures in the powerpc code
- Allocation of interrupt controller domains in the powerpc code
- Page table allocations (oops ... can't change that arch specific,
would have to be a generic change)
- ioremap (which call both __get_vm_area() and page table allocs)
- ...

Are you just insane ? :-)

Cheers,
Ben.




\
 
 \ /
  Last update: 2009-06-15 23:37    [W:0.152 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site