]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
SLUB: Do not allocate object bit array on stack
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:30 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:02 +0000 (10:23 -0700)
commit434e245ddd3f14aa8eef97cae16c71b863ab092a
treebbfd9d012416e6882fd714650435a78ce4f9da9b
parent94f6030ca792c57422f04a73e7a872d8325946d3
SLUB: Do not allocate object bit array on stack

The objects per slab increase with the current patches in mm since we allow up
to order 3 allocs by default.  More patches in mm actually allow to use 2M or
higher sized slabs.  For slab validation we need per object bitmaps in order
to check a slab.  We end up with up to 64k objects per slab resulting in a
potential requirement of 8K stack space.  That does not look good.

Allocate the bit arrays via kmalloc.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c