]> git.baikalelectronics.ru Git - kernel.git/commit
mm, slab_common: Fix bootstrap creation of kmalloc caches
authorChristoph Lameter <cl@linux.com>
Fri, 3 May 2013 18:04:18 +0000 (18:04 +0000)
committerPekka Enberg <penberg@kernel.org>
Mon, 6 May 2013 20:22:17 +0000 (23:22 +0300)
commite7d0a96673ca2ef6113bf5b2636193657738520e
tree96312febbf13b5fe1f956411be7693c07343a7f8
parentcf4563a939c6d7846126e4b70565432ce406a495
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: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Christoph Lamete <cl@linux.com>
Link: http://lkml.kernel.org/r/201305040348.CIF81716.OStQOHFJMFLOVF@I-love.SAKURA.ne.jp
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab_common.c