• Tejun Heo's avatar
    percpu: remove unit_size power-of-2 restriction · d9b55eeb
    Tejun Heo authored
    Impact: allow unit_size to be arbitrary multiple of PAGE_SIZE
    
    In dynamic percpu allocator, there is no reason the unit size should
    be power of two.  Remove the restriction.
    
    As non-power-of-two unit size means that empty chunks fall into the
    same slot index as lightly occupied chunks which is bad for reclaming.
    Reserve an extra slot for empty chunks.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    d9b55eeb
percpu.c 24.2 KB