]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: allocation size should be even
authorViro <viro@ZenIV.linux.org.uk>
Mon, 17 Mar 2014 20:01:27 +0000 (16:01 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 17 Mar 2014 20:10:29 +0000 (16:10 -0400)
commit7627a8b9a1f01d5706789fc05c275ceecb39c9bf
treea2bc2cf26e8e7907a3270aed8820c8f7c3085d74
parentaa0782beb0de8f6c8fdda6162a56de0262542240
percpu: allocation size should be even

1d9508b372bf ("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: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c