From: Chris Mason Date: Wed, 8 May 2013 19:56:28 +0000 (-0400) Subject: mm/slab: Fix crash during slab init X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=956e46efb2478ebff7a871138458fa8124fd18dd;p=pandora-kernel.git mm/slab: Fix crash during slab init Commit 8a965b3baa89 ("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: Chris Mason Acked-by: Christoph Lameter Acked-by: Tony Lindgren Acked-by: Soren Brinkmann Tested-by: Tetsuo Handa Tested-by: Konrad Rzeszutek Wilk Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed