On 7/26/06, Christoph Lameter <[email protected]> wrote: > > > Your patch only deals with ARCH_SLAB_MINALIGN. kmem_cache_create() never > > > uses ARCH_KMALLOC_MINALIGN only kmem_cache_init() does by passing it to > > > kmem_cache_create. ARCH_KMALLOC_MINALIGN will still be ignored. On Wed, 26 Jul 2006, Pekka Enberg wrote: > > Yes, in which case the caller mandated align will be, well, > > ARCH_KMALLOC_MINALIGN. The patch changes kmem_cache_create to respect > > caller mandated alignment too. On Wed, 26 Jul 2006, Christoph Lameter wrote: > As far as I understood Heiko s390 does not set ARCH_SLAB_MINALIGN > because they do not want alignent for all caches. Correct. Heiko sets ARCH_KMALLOC_MINALIGN which will be passed as the 'align' parameter to kmem_cache_create -- also known as 'caller mandated alignment.' My patch changes the code so that, if either architecture or caller mandated alignment is greater than BYTES_PER_WORD, kmem_cache_create will disable debugging. Do you now see why my patch is in fact _not_ ignoring ARCH_KMALLOC_MINALIGN, but instead respecting that. Pekka - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch] slab: always follow arch requested alignments
- From: Pekka J Enberg <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- References:
- [patch] slab: always follow arch requested alignments
- From: Heiko Carstens <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Christoph Lameter <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Heiko Carstens <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: "Pekka Enberg" <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Christoph Lameter <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Pekka J Enberg <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Christoph Lameter <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Pekka J Enberg <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Pekka J Enberg <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Christoph Lameter <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: "Pekka Enberg" <[email protected]>
- Re: [patch] slab: always follow arch requested alignments
- From: Christoph Lameter <[email protected]>
- [patch] slab: always follow arch requested alignments
- Prev by Date: Re: [ANNOUNCE][RFC] PlugSched-6.4 for 2.6.18-rc2
- Next by Date: Re: [patch] slab: always follow arch requested alignments
- Previous by thread: Re: [patch] slab: always follow arch requested alignments
- Next by thread: Re: [patch] slab: always follow arch requested alignments
- Index(es):