Skip to content
Commit 956e46ef authored by Chris Mason's avatar Chris Mason Committed by Linus Torvalds
Browse files

mm/slab: Fix crash during slab init

Commit 8a965b3b

 ("mm, slab_common: Fix bootstrap creation of kmalloc
caches") introduced a regression that caused us to crash early during
boot.  The commit was introducing ordering of slab creation, making sure
two odd-sized slabs were created after specific powers of two sizes.

But, if any of the power of two slabs were created earlier during boot,
slabs at index 1 or 2 might not get created at all.  This patch makes
sure none of the slabs get skipped.

Tony Lindgren bisected this down to the offending commit, which really
helped because bisect kept bringing me to almost but not quite this one.

Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: default avatarTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Tested-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ebb37277
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