• T
    percpu: improve first chunk initial area map handling · 61ace7fa
    Tejun Heo 提交于
    Impact: no functional change
    
    When the first chunk is created, its initial area map is not allocated
    because kmalloc isn't online yet.  The map is allocated and
    initialized on the first allocation request on the chunk.  This works
    fine but the scattering of initialization logic between the init
    function and allocation path is a bit confusing.
    
    This patch makes the first chunk initialize and use minimal statically
    allocated map from pcpu_setpu_first_chunk().  The map resizing path
    still needs to handle this specially but it's more straight-forward
    and gives more latitude to the init path.  This will ease future
    changes.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    61ace7fa
percpu.c 26.8 KB