• I
    alpha: fix vmalloc breakage · 822c18f2
    Ivan Kokshaysky 提交于
    On alpha, we have to map some stuff in the VMALLOC space very early in the
    boot process (to make SRM console callbacks work and so on, see
    arch/alpha/mm/init.c).  For old VM allocator, we just manually placed a
    vm_struct onto the global vmlist and this worked for ages.
    
    Unfortunately, the new allocator isn't aware of this, so it constantly
    tries to allocate the VM space which is already in use, making vmalloc on
    alpha defunct.
    
    This patch forces KVA to import vmlist entries on init.
    
    [akpm@linux-foundation.org: remove unneeded check (per Johannes)]
    Signed-off-by: NIvan Kokshaysky <ink@jurassic.park.msu.ru>
    Cc: Nick Piggin <npiggin@suse.de>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Richard Henderson <rth@twiddle.net>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    822c18f2
vmalloc.c 43.1 KB