Skip to content
Commit 8a965b3b authored by Christoph Lameter's avatar Christoph Lameter Committed by Pekka Enberg
Browse files

mm, slab_common: Fix bootstrap creation of kmalloc caches



For SLAB the kmalloc caches must be created in ascending sizes in order
for the OFF_SLAB sub-slab cache to work properly.

Create the non power of two caches immediately after the prior power of
two kmalloc cache. Do not create the non power of two caches before all
other caches.

Reported-and-tested-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarChristoph Lamete <cl@linux.com>
Link: http://lkml.kernel.org/r/201305040348.CIF81716.OStQOHFJMFLOVF@I-love.SAKURA.ne.jp


Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 6286ae97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment