projects/linux·commit 561ccd3a

[PATCH] handle SLOB with sparsemen

561ccd3a · Yasunori Goto <[email protected]> · 2006-12-22 01:09:44 -08:00

This is to disallow to make SLOB with SMP or SPARSEMEM.  This avoids latent
troubles of SLOB with SLAB_DESTROY_BY_RCU.  And fix compile error.

Signed-off-by: Yasunori Goto <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
561ccd3a97867ed33e1670feeca3391cd4d6fa2c
Parents
7de6b805

Changes

1 files changed · +1 −1

FileStatusAddDelContent
init/Kconfigmodified+1−1View file

init/Kconfig

View file
diff --git a/init/Kconfig b/init/Kconfig
index 9b1adb1..a3f83e2 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -450,7 +450,7 @@ config SHMEM
config SLAB
default y
- bool "Use full SLAB allocator" if EMBEDDED
+ bool "Use full SLAB allocator" if (EMBEDDED && !SMP && !SPARSEMEM)
help
Disabling this replaces the advanced SLAB allocator and
kmalloc support with the drastically simpler SLOB allocator.