Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753159AbcKHEWr (ORCPT ); Mon, 7 Nov 2016 23:22:47 -0500 Received: from mail-yb0-f180.google.com ([209.85.213.180]:33785 "EHLO mail-yb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbcKHEWp (ORCPT ); Mon, 7 Nov 2016 23:22:45 -0500 MIME-Version: 1.0 In-Reply-To: <20161107150712.d7b26fc6cf6c403b85f9e36a@linux-foundation.org> References: <1478553075-120242-1-git-send-email-thgarnie@google.com> <1478553075-120242-2-git-send-email-thgarnie@google.com> <20161107150712.d7b26fc6cf6c403b85f9e36a@linux-foundation.org> From: Thomas Garnier Date: Mon, 7 Nov 2016 20:22:44 -0800 Message-ID: Subject: Re: [PATCH v3 2/2] mm: Check kmem_create_cache flags are commons To: Andrew Morton Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Linux-MM , LKML , Greg Thelen , Vladimir Davydov , Michal Hocko Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 712 Lines: 19 On Mon, Nov 7, 2016 at 3:07 PM, Andrew Morton wrote: > On Mon, 7 Nov 2016 13:11:15 -0800 Thomas Garnier wrote: > >> Verify that kmem_create_cache flags are not allocator specific. It is >> done before removing flags that are not available with the current >> configuration. > > What is the reason for this change? The current kmem_cache_create removes incorrect flags but do not validate the callers are using them right. This change will ensure that callers are not trying to create caches with flags that won't be used because allocator specific. It was Christoph's suggestion on the previous versions of the original patch (the memcg bug fix). -- Thomas