From: Yasunori Goto Date: Fri, 22 Dec 2006 09:09:44 +0000 (-0800) Subject: [PATCH] handle SLOB with sparsemen X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=561ccd3a97867ed33e1670feeca3391cd4d6fa2c;p=linux-beck.git [PATCH] handle SLOB with sparsemen 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 Acked-by: Randy Dunlap Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/Kconfig b/init/Kconfig index 9b1adb176ea8..a3f83e2c8250 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.