• Tejun Heo's avatar
    percpu: make sure chunk->map array has available space · 9c824b6a
    Tejun Heo authored
    An allocation attempt may require extending chunk->map array which
    requires GFP_KERNEL context which isn't available for atomic
    allocations.  This patch ensures that chunk->map array usually keeps
    some amount of available space by directly allocating buffer space
    during GFP_KERNEL allocations and scheduling async extension during
    atomic ones.  This should make atomic allocation failures from map
    space exhaustion rare.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    9c824b6a
percpu.c 60.2 KB