• Tejun Heo's avatar
    percpu: reorganize chunk creation and destruction · 6081089f
    Tejun Heo authored
    Reorganize alloc/free_pcpu_chunk() such that chunk struct alloc/free
    live in pcpu_alloc/free_chunk() and the rest in
    pcpu_create/destroy_chunk().  While at it, add missing error handling
    for chunk->map allocation failure.
    
    This is to allow alternate chunk management implementation for percpu
    nommu support.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
    Cc: Graff Yang <graff.yang@gmail.com>
    Cc: Sonic Zhang <sonic.adi@gmail.com>
    6081089f
percpu.c 64 KB