Re: Re: [BLOCK] bh: Ensure bh fits within a page

From: Pekka Enberg
Date: Tue Aug 01 2006 - 15:06:20 EST


On 8/1/06, Christoph Lameter <clameter@xxxxxxx> wrote:
The slab allocator gives no guarantee that a structure is not straddling a
page boundary regardless of debug or not. It may just happen that the
objects are arranged if kmem_cache_cretae() is called with certain
parameters. Another arch with other cacheline alignment and another page
size may arrange the objects differently.

Indeed. You could try to force zero-order page allocations for a
cache, but we are probably better of using the page allocator directly
or crafting a special purpose allocator for the block layer.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at