Skip to content

Commit 3052086

Browse files
Christoph LameterLinus Torvalds
authored andcommitted
PowerPC: Disable SLUB for configurations in which slab page structs are modified
PowerPC uses the slab allocator to manage the lowest level of the page table. In high cpu configurations we also use the page struct to split the page table lock. Disallow the selection of SLUB for that case. Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Hugh Dickins <hugh@veritas.com> Cc: Paul Mackerras <paulus@samba.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 614410d commit 3052086

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

arch/powerpc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ config GENERIC_BUG
117117
default y
118118
depends on BUG
119119

120+
#
121+
# Powerpc uses the slab allocator to manage its ptes and the
122+
# page structs of ptes are used for splitting the page table
123+
# lock for configurations supporting more than SPLIT_PTLOCK_CPUS.
124+
#
125+
# In that special configuration the page structs of slabs are modified.
126+
# This setting disables the selection of SLUB as a slab allocator.
127+
#
128+
config ARCH_USES_SLAB_PAGE_STRUCT
129+
bool
130+
default y
131+
depends on SPLIT_PTLOCK_CPUS <= NR_CPUS
132+
120133
config DEFAULT_UIMAGE
121134
bool
122135
help

0 commit comments

Comments
 (0)