]> git.baikalelectronics.ru Git - kernel.git/commit
Fix kmalloc slab creation sequence
authorChristoph Lameter <cl@linux.com>
Mon, 29 Jun 2015 14:28:08 +0000 (09:28 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Jun 2015 17:49:51 +0000 (10:49 -0700)
commit56a078c245fad0ec9588acf51728b15c6f31acdc
tree0708dfc873d6df1e7df1ce7cd6575f19cd8b5ed0
parent8063ab3aa7eb0ea2e65e2aa8e21950701715df2e
Fix kmalloc slab creation sequence

This patch restores the slab creation sequence that was broken by commit
8319ce4453312c and also reverts the portions that introduced the
KMALLOC_LOOP_XXX macros. Those can never really work since the slab creation
is much more complex than just going from a minimum to a maximum number.

The latest upstream kernel boots cleanly on my machine with a 64 bit x86
configuration under KVM using either SLAB or SLUB.

Fixes: 8319ce4453312c ("support the slub_debug boot option")
Reported-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slab.h
mm/slab_common.c