[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1274278307.11603.1264.camel@calx>
Date: Wed, 19 May 2010 09:11:47 -0500
From: Matt Mackall <mpm@...enic.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: David Woodhouse <dwmw2@...radead.org>,
Herbert Xu <herbert@...dor.hengli.com.au>,
David Miller <davem@...emloft.net>, penberg@...helsinki.fi,
ken@...elabs.ch, michael-dev@...i-braun.de,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org,
anemo@....ocn.ne.jp
Subject: Re: [BUG] SLOB breaks Crypto
On Wed, 2010-05-19 at 13:50 +0200, Geert Uytterhoeven wrote:
> On Wed, May 19, 2010 at 13:40, David Woodhouse <dwmw2@...radead.org> wrote:
> > On Wed, 2010-05-19 at 13:32 +0200, Geert Uytterhoeven wrote:
> >> Instead of having (different) defaults in sl[aou]b, perhaps we should
> >> just remove the defaults completely, to ensure all architectures set
> >> ARCH_SLAB_MINALIGN to the correct value?
> >
> > What is 'correct'? The architecture sets it to the minimum value that it
> > can cope with, according to its own alignment constraints (and DMA/cache
> > constraints, in the case of ARCH_KMALLOC_MINALIGN).
> >
> > Some architectures don't _have_ any minimum required alignment, so they
> > have no need to set it. If the architecture _does_ specify a minimum,
> > the allocators must honour it. Otherwise, they're free to do their own
> > thing. And slob chooses to use a smaller alignment than slab and slub
> > do, in accordance with its design and its raison d'ĂȘtre.
>
> Currently 7 out of 20+ architectures set it.
> Any bets on how many are missing, but should set it?
I still think we should add it to all of them as positive documentation
that this issue has been considered. And then make the kernel not
compile without it so new arch implementors can't miss it.
--
Mathematics is the supreme nostalgia of our time.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists