lkml.org 
[lkml]   [2009]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: slab: setup allocators earlier in the boot sequence
    From
    Date
    Hi Ben,

    On Fri, 2009-06-12 at 17:39 +1000, Benjamin Herrenschmidt wrote:
    > For example, slab_is_available() didn't always exist, and so in the
    > early days on powerpc, we used a mem_init_done global that is set form
    > mem_init() (not perfect but works in practice). And we still have code
    > using that to do the test.

    Looking at powerpc arch code, can we get rid of the *_maybe_bootmem()
    functions now? Or is slab initialization too late still? FWIW, I think
    one simple fix on PPC is to just clear __GFP_NOWAIT in those functions
    (all of them seem to be using GFP_KERNEL which is wrong during boot).

    Pekka



    \
     
     \ /
      Last update: 2009-06-12 10:19    [W:0.031 / U:0.184 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site