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)
This patch restores the slab creation sequence that was broken by commit
4066c33d0308f8 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: 4066c33d0308f8 ("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

Simple merge
Simple merge