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)
commita9730fca9946f3697410479e0ef1bd759ba00a77
tree0708dfc873d6df1e7df1ce7cd6575f19cd8b5ed0
parent88793e5c774ec69351ef6b5200bb59f532e41bca
Fix kmalloc slab creation sequence

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