Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752921AbbFKA7k (ORCPT ); Wed, 10 Jun 2015 20:59:40 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34128 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbbFKA7c (ORCPT ); Wed, 10 Jun 2015 20:59:32 -0400 Date: Thu, 11 Jun 2015 09:59:56 +0900 From: Sergey Senozhatsky To: Joe Perches Cc: Sergey Senozhatsky , Dan Streetman , Sergey Senozhatsky , Andrew Morton , Minchan Kim , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Michal Hocko , David Rientjes , Linux-MM , linux-kernel Subject: Re: [RFC][PATCH 4/5] mm/zpool: allow NULL `zpool' pointer in zpool_destroy_pool() Message-ID: <20150611005956.GA515@swordfish> References: <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <1433851493-23685-5-git-send-email-sergey.senozhatsky@gmail.com> <20150610235836.GB499@swordfish> <1433983686.32331.35.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433983686.32331.35.camel@perches.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1215 Lines: 37 On (06/10/15 17:48), Joe Perches wrote: [..] > > > > For consistency, tweak zpool_destroy_pool() and NULL-check the > > > > pointer there. > > > > > > > > Proposed by Andrew Morton. > > > > > > > > Signed-off-by: Sergey Senozhatsky > > > > Reported-by: Andrew Morton > > > > LKML-reference: https://lkml.org/lkml/2015/6/8/583 > > > > > > Acked-by: Dan Streetman > > > > Thanks. > > > > Shall we ask Joe to add zpool_destroy_pool() to the > > "$func(NULL) is safe and this check is probably not required" list? > > [] > > Is it really worth it? > > There isn't any use of zpool_destroy_pool preceded by an if > There is one and only one use of zpool_destroy_pool. > Yes, that's why I asked. I don't think that zpool_destroy_pool() will gain any significant amount of users soon (well, who knows), so I'm fine with keeping it out of checkpatch checks. Just checked your opinion. -ss -- 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/