• Viro's avatar
    percpu: allocation size should be even · 2f69fa82
    Viro authored
    723ad1d9 ("percpu: store offsets instead of lengths in ->map[]")
    updated percpu area allocator to use the lowest bit, instead of sign,
    to signify whether the area is occupied and forced min align to 2;
    unfortunately, it forgot to force the allocation size to be even
    causing malfunctions for the very rare odd-sized allocations.
    
    Always force the allocations to be even sized.
    
    tj: Wrote patch description.
    Original-patch-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    2f69fa82
percpu.c 56.9 KB