From: Chris Metcalf Date: Thu, 2 Jun 2011 14:19:41 +0000 (-0400) Subject: slub: always align cpu_slab to honor cmpxchg_double requirement X-Git-Tag: v3.0-rc3~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d84fef6d0366b585b7de13527a0faeca84d9ce;p=pandora-kernel.git slub: always align cpu_slab to honor cmpxchg_double requirement On an architecture without CMPXCHG_LOCAL but with DEBUG_VM enabled, the VM_BUG_ON() in __pcpu_double_call_return_bool() will cause an early panic during boot unless we always align cpu_slab properly. In principle we could remove the alignment-testing VM_BUG_ON() for architectures that don't have CMPXCHG_LOCAL, but leaving it in means that new code will tend not to break x86 even if it is introduced on another platform, and it's low cost to require alignment. Acked-by: David Rientjes Acked-by: Christoph Lameter Signed-off-by: Chris Metcalf Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed