Commit 561ccd3a authored by Yasunori Goto's avatar Yasunori Goto Committed by Linus Torvalds
Browse files

[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: default avatarYasunori Goto <y-goto@jp.fujitsu.com>
Acked-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Acked-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7de6b805
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -450,7 +450,7 @@ config SHMEM


config SLAB
config SLAB
	default y
	default y
	bool "Use full SLAB allocator" if EMBEDDED
	bool "Use full SLAB allocator" if (EMBEDDED && !SMP && !SPARSEMEM)
	help
	help
	  Disabling this replaces the advanced SLAB allocator and
	  Disabling this replaces the advanced SLAB allocator and
	  kmalloc support with the drastically simpler SLOB allocator.
	  kmalloc support with the drastically simpler SLOB allocator.