From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbWGZL3S (ORCPT ); Wed, 26 Jul 2006 07:29:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751382AbWGZL3S (ORCPT ); Wed, 26 Jul 2006 07:29:18 -0400 Received: from mtagate4.uk.ibm.com ([195.212.29.137]:17254 "EHLO mtagate4.uk.ibm.com") by vger.kernel.org with ESMTP id S1751357AbWGZL3R (ORCPT ); Wed, 26 Jul 2006 07:29:17 -0400 Date: Wed, 26 Jul 2006 13:26:58 +0200 From: Heiko Carstens To: Pekka J Enberg Cc: Christoph Lameter , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Martin Schwidefsky , manfred@colorfullife.com Subject: Re: [patch 2/2] slab: always consider arch mandated alignment Message-ID: <20060726112658.GG9592@osiris.boeblingen.de.ibm.com> References: <20060723073500.GA10556@osiris.ibm.com> <20060723162427.GA10553@osiris.ibm.com> <20060726085113.GD9592@osiris.boeblingen.de.ibm.com> <20060726101340.GE9592@osiris.boeblingen.de.ibm.com> <20060726105204.GF9592@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: mutt-ng/devel-r804 (Linux) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2006 at 02:16:06PM +0300, Pekka J Enberg wrote: > On Wed, 26 Jul 2006, Heiko Carstens wrote: > > We only specify ARCH_KMALLOC_MINALIGN, since that aligns only the kmalloc > > caches, but it doesn't disable debugging on other caches that are created > > via kmem_cache_create() where an alignment of e.g. 0 is specified. > > > > The point of the first patch is: why should the slab cache be allowed to chose > > an aligment that is less than what the caller specified? This does very likely > > break things. > > Ah, yes, you are absolutely right. We need to respect caller mandated > alignment too. How about this? Works fine and looks much better than my two patches. Thanks!