Received: by 10.192.165.148 with SMTP id m20csp3403024imm; Mon, 23 Apr 2018 06:05:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx49EoROyb66qF1nXUDA+Wvuj844dI7ZmunYv/yEBm7I9/yQe4nJ/8S43Iu3nYBbQEk2P3Smu X-Received: by 10.98.38.65 with SMTP id m62mr15436163pfm.15.1524488730531; Mon, 23 Apr 2018 06:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524488730; cv=none; d=google.com; s=arc-20160816; b=L0nGUWda6Y7DG3GtsWLLqsq5aBAJTa5ZpQoGx8THMoBSbHbiyG72i52wzldRu+J/Kw 8w2g9oD7EMJqSjgHfboM51v7GZjEAh3DQrYNVIQGf8oRBL1EmkU4xD5yHrJK1eoYHIcf zlWhkfSGINbs1bOovVyZsg6gdeKy416znWtGLPDNjJkvYutHUfnl0shfg9bZvntB9RBZ n9J9e9aVVRHFzmFeS+npaa8VECk7CtC006NP6OLkFkT8542yY40wJDukty2FEuT8PsUD 7eEDdH0/B0CZHCNamdJdCxWJdNlDa08GypQlUa+0+w0g+CzsUm7AXK+350j8fgCLHjvX pEYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VUD7sjoYI0B9b4yUDlGBxwRDMRXOjyhqUDLNpyrq2EM=; b=r5PQoRkyG70pwdfEBSrgA3mge3kE9ZRIx8drZajkw2twhkI1rho7Fgmq94DN+8yAXa 4LDvgjHSyuhlnHgs9r1TzB6VxnXUmUwyKj2pvyGNxOn2DRPss2XgHlRZjHwMTHduxXXC JLW+SjUBqTx2qfh1GiAulOzhFatZtsy+oD0sLpK3EkAxEMzWHa95BaPBFcbM4weC8kOb /ibBm4SCRAh+y5asHxSahKZoQn9OVPfO756jhtFEQ83ElWMMXVv6UPwazXFxXIqgTxeG gS0vsLqmtstkuXtTL12peRd4eF3JqAEOfn8F36dZMdfJArs5vXTGIeZKc9AZPgLVtMul CByw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g85si11440693pfg.192.2018.04.23.06.05.14; Mon, 23 Apr 2018 06:05:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754894AbeDWNDd (ORCPT + 99 others); Mon, 23 Apr 2018 09:03:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754786AbeDWND2 (ORCPT ); Mon, 23 Apr 2018 09:03:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 53296D4A; Mon, 23 Apr 2018 13:03:28 +0000 (UTC) Date: Mon, 23 Apr 2018 15:03:17 +0200 From: Greg Kroah-Hartman To: NeilBrown Cc: James Simmons , Oleg Drokin , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 1/6] staging: lustre: move stack-check macros to libcfs_debug.h Message-ID: <20180423130317.GA17153@kroah.com> References: <152383910760.23409.2327082725637657049.stgit@noble> <152383935730.23409.6748888065027051683.stgit@noble> <87a7u1s1fi.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a7u1s1fi.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 12:17:37PM +1000, NeilBrown wrote: > On Mon, Apr 16 2018, James Simmons wrote: > > >> CDEBUG_STACK() and CHECK_STACK() are macros to help with > >> debugging, so move them from > >> drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > >> to > >> drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h > >> > >> This seems a more fitting location, and is a step towards > >> removing linux/libcfs.h and simplifying the include file structure. > > > > Nak. Currently the lustre client always enables debugging but that > > shouldn't be the case. What we do need is the able to turn off the > > crazy debugging stuff. In the development branch of lustre it is > > done with CDEBUG_ENABLED. We need something like that in Kconfig > > much like we have CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK. Since we like > > to be able to turn that off this should be moved to just after > > LIBCFS_DEBUG_MSG_DATA_DECL. Then from CHECK_STACK down to CWARN() > > it can be build out. When CDEBUG_ENABLED is disabled CDEBUG_LIMIT > > would be empty. > > So why, exactly, is this an argument to justify a NAK? > Are you just saying that the code I moved into libcfs_debug.h should be > moved to somewhere a bit later in the file? > That can easily be done when it is needed. It isn't needed now so why > insist on it? > > Each patch should do one thing and make clear forward progress. This > patch gets rid of an unnecessary file and brings related code together. > I think that qualifies. I agree, this just deletes an unused file, it changes no functionality at all. Now applied. greg k-h