Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp320459imm; Fri, 1 Jun 2018 01:14:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUh9cWPl0mzWvzDu3nalVD1LK8cBL4wskiSf2p4N+O/QjkdNVC8zaI9gY+kKJT4teKKkOt X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr10181462plg.135.1527840886202; Fri, 01 Jun 2018 01:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527840886; cv=none; d=google.com; s=arc-20160816; b=J8SHJt091V7JYPkgqsf8C9SGSD7eLAcgZ2C3jj3Cs0UQ/sVAasd6HNwx40ixBaqFv7 Gopx+jpbB8itK4VXrbSTzkL+/wlzxN1QdudT5Z4EtGHu1SDvce5e8m+LddO8p+mZ5m0K gCV9oWA4yS50md3repY+MXkPxEzbxGE2K2I1e3bpkYcmqB48ZRfd4fpIf+7HGvTRGBvu gxbrLYmftZAk3kKR5ionevMf9tcqaSZJenESLdP8sjuQkGmyT+Qa+HJH+CrGGSQPrepo Cb2l55WRbQvYwdYgA+muOSKlnUbPk6NbbdxY+wkeJmo/2ChrGZIp+5LVoxcTtG/KA+mI vKNw== 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:dkim-signature:arc-authentication-results; bh=xhEtMzlxwZqds3YWdDm5VbnMrr34Xj+Nj1hvEp+1MXA=; b=dFe3529tHe2jg7Vg5bmx48AnP8PXcxs6GNmNBO+lLHdyN9ax0moxvMvC3Uv8CWgiZs HtufUy493taOjFN1c4DX+jDNfEC+qTyO7mODn3NtniA3AaO+wUFJh070LhosRIRovCoN y8ZdcDAqOEF5If6jXti8RiOEWC2yz10msRRAumzNEKQUse3W+xqO2r8TMkemdgMCB7PQ 9lDzCCGi+iXfGD8hwjXUnnJraxa0Mkyx3RNPXfNfPxEu3am0mr/MQoAGNToPcyQEiTLW BG3cB0EIDuznUPsAt/ZyH6nQ8BXhHzCV3TVOPC46/22wz1jadRHiswjkMJTqPQXZpqeB umKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Oeq9VzD7; 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 e11-v6si29119445pgs.476.2018.06.01.01.14.30; Fri, 01 Jun 2018 01:14:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Oeq9VzD7; 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 S1751348AbeFAIM5 (ORCPT + 99 others); Fri, 1 Jun 2018 04:12:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012AbeFAIMe (ORCPT ); Fri, 1 Jun 2018 04:12:34 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E0EC72087D; Fri, 1 Jun 2018 08:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527840753; bh=9en9JVj1x2ZIULI99cVbgY58riYeVtpnpmBzbWfT0sE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oeq9VzD7oQ/rCnMtvPt/zgbeZJ0H23hJO80mJXxblltuMBrGlayUMukMHzG6/wXKw glc5skFFZW0pAHeFWXZ8Pu5BawbSNr6qOM0mWYRQJHi9zmVlomYeqeNdP7cNVjZmkU SX6qszFdYLG0wTZbl9OzN8McLnBm2Dj8zlmiYEmU= Date: Fri, 1 Jun 2018 10:12:11 +0200 From: Greg Kroah-Hartman To: "Dilger, Andreas" Cc: "devel@driverdev.osuosl.org" , NeilBrown , Linux Kernel Mailing List , "Drokin, Oleg" , "Hammond, John" , Lustre Development List Subject: Re: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers Message-ID: <20180601081211.GD12809@kroah.com> References: <1527603705-30450-1-git-send-email-jsimmons@infradead.org> <1527603705-30450-7-git-send-email-jsimmons@infradead.org> <20180531165426.GA23414@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 05:30:24PM +0000, Dilger, Andreas wrote: > On May 31, 2018, at 18:54, Greg Kroah-Hartman wrote: > > > > On Tue, May 29, 2018 at 10:21:45AM -0400, James Simmons wrote: > >> From: "John L. Hammond" > >> > >> Pre 2.10.1 MDTs will crash when they receive a listxattr (MDS_GETXATTR > >> with OBD_MD_FLXATTRLS) RPC for an orphan or dead object. So for > >> clients connected to these older MDTs, try to avoid sending listxattr > >> RPCs by making the bulk getxattr (MDS_GETXATTR with OBD_MD_FLXATTRALL) > >> more likely to succeed and thereby reducing the chances of falling > >> back to listxattr. > >> > >> +#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(3, 0, 53, 0) > > > > Why are you adding pointless version checks to mainline? Please don't > > add new ones of these, you need to be working on removing the existing > > ones. > > These are not Linux kernel version checks, but rather Lustre release version > checks. This allows us to remove workarounds like this in the future when > they are no longer needed, rather than accumulating cruft forever. It's like > the separation of NFSv2 vs NFSv3 vs NFSv4. As Neil said, this is not like NFS at all. Those are well-defined Kconfig options that are used to compile whole new files and include/exclude different functions entirely. It is not used to check in the middle of code flow if something should, or should not, happen. As Neil also said, if you really have to do this, put it behind functions that you properly define in a .h file, do not put #if code in a .c file if at all possible (yeah, nfs does not do this everywhere, but it is much better than the random checks you all have today in the lustre code.) So as-is, I am not taking this patch, sorry, it needs to be reworked. greg k-h