Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757326AbbDVO1O (ORCPT ); Wed, 22 Apr 2015 10:27:14 -0400 Received: from resqmta-ch2-09v.sys.comcast.net ([69.252.207.41]:52935 "EHLO resqmta-ch2-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754045AbbDVO1L (ORCPT ); Wed, 22 Apr 2015 10:27:11 -0400 Date: Wed, 22 Apr 2015 09:27:08 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Gavin Guo cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/slab_common: Support the slub_debug boot option on specific object size In-Reply-To: <1429691618-13884-1-git-send-email-gavin.guo@canonical.com> Message-ID: References: <1429691618-13884-1-git-send-email-gavin.guo@canonical.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 750 Lines: 16 On Wed, 22 Apr 2015, Gavin Guo wrote: > The slub_debug=PU,kmalloc-xx cannot work because in the > create_kmalloc_caches() the s->name is created after the > create_kmalloc_cache() is called. The name is NULL in the > create_kmalloc_cache() so the kmem_cache_flags() would not set the > slub_debug flags to the s->flags. The fix here set up a kmalloc_names > string array for the initialization purpose and delete the dynamic > name creation of kmalloc_caches. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/