Skip to content
  • Ivan Kokshaysky's avatar
    alpha: fix vmalloc breakage · 822c18f2
    Ivan Kokshaysky authored
    
    
    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: default avatarIvan 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    822c18f2