From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by kanga.kvack.org (Postfix) with ESMTP id 3D4366B0257 for ; Thu, 6 Aug 2015 10:27:39 -0400 (EDT) Received: by wicgj17 with SMTP id gj17so25006033wic.1 for ; Thu, 06 Aug 2015 07:27:38 -0700 (PDT) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr. [192.134.164.83]) by mx.google.com with ESMTPS id n18si4365747wij.109.2015.08.06.07.27.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 06 Aug 2015 07:27:37 -0700 (PDT) Date: Thu, 6 Aug 2015 16:27:31 +0200 (CEST) From: Julia Lawall Subject: Re: [RFC][PATCH 1/5] mm/slab_common: allow NULL cache pointer in kmem_cache_destroy() In-Reply-To: <20150806142131.GB4292@swordfish> Message-ID: References: <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <1433851493-23685-2-git-send-email-sergey.senozhatsky@gmail.com> <20150617235205.GA3422@swordfish> <20150806142131.GB4292@swordfish> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Sergey Senozhatsky Cc: Julia Lawall , Sergey Senozhatsky , David Rientjes , Andrew Morton , Minchan Kim , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Thu, 6 Aug 2015, Sergey Senozhatsky wrote: > On (06/19/15 08:50), Julia Lawall wrote: > > On Thu, 18 Jun 2015, Sergey Senozhatsky wrote: > > > > > On (06/17/15 16:14), David Rientjes wrote: > > > [..] > > > > > > > > > > Signed-off-by: Sergey Senozhatsky > > > > > Reported-by: Andrew Morton > > > > > LKML-reference: https://lkml.org/lkml/2015/6/8/583 > > > > > > > > Acked-by: David Rientjes > > > > > > > > kmem_cache_destroy() isn't a fastpath, this is long overdue. Now where's > > > > the patch to remove the NULL checks from the callers? ;) > > > > > > > > > > Thanks. > > > > > > Yes, Julia Lawall (Cc'd) already has a patch set ready for submission. > > > > I'll refresh it and send it shortly. > > > > I'll re-up this thread. > > Julia, do you want to wait until these 3 patches will be merged to > Linus's tree (just to be on a safe side, so someone's tree (out of sync > with linux-next) will not go crazy)? I think it would be safer. Code may crash if the test is removed before the function can tolerate it. julia -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org