Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp854817imm; Thu, 31 May 2018 10:31:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLakNPQfKWTaEcIJZrSyJkvIA5ptprPUywCTQC5P7Cg5dUqqXLvW2WzXCGuELs1/KGYuzid X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr7846823pla.58.1527787866420; Thu, 31 May 2018 10:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527787866; cv=none; d=google.com; s=arc-20160816; b=M9kVFPkK3XTGGLSxmCq8MVqMKKDklyhD/g5HRl2bdIrcDk/FHbdVRO8BOmbXgRVwwG V+qZXz7dWMTXygECItBHrG1GwEUIKYFh4DRZ4YMEduqkqXjnjNl+POv6toT7iPshLONb Rf1VkXQkbm37Hw+Yp3KdZFvyIx1YWR1Rm1LZp4++pGCbPmZtI+eBPeBUwvGt9c84HCB7 35zYJI64qmAQUKWUpxQlNJMiU5C3jvORA7TQV545sFPPeLO4Zhlg8KROoCNC2jYP5ySd XaB8i0m9Peuyg0TWAH3u4HldCHkMjNRHUHrCV2aK24iHS8ZrDeXyIu/SJadh07Uh1M02 XX/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=JQFk3XS9LD3fMybO4IEa576ILWLdiRsh1wLT3uW+N74=; b=ZOq0uk1MpRJuwym9U4JLyE7iOWJODIZQ3aGBXsS3Um4hoU3SOyaO8k+k89SrPk0KiA MzLGHiwgGcgZLYVst7JEYkfODOBn47msp7x2mq5QVPJ5cK9GTuC6bzUu6s4oa+u/Ae4q eR0CrKYVE6OFjEp8S1GOIkGvwrDxg7av2yJa3MTUbp4zFupv/SDG74Ug1Xy+nt06axHo PKF/ctlCKDw7TEQPM0CBPi9qHG0MRkw7coLpSFtnuo9oQDZ4DSIF5Za7wBt6rIFfdA6Z aMbehheYtxxBfrHD5AZddPmxTDCX82fF+IpOpPKMYnS0AxPF/ergNjyp9uL5pL5GUAqD CNZQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si30696903pgr.72.2018.05.31.10.30.52; Thu, 31 May 2018 10:31:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755864AbeEaRa1 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 31 May 2018 13:30:27 -0400 Received: from mga02.intel.com ([134.134.136.20]:32842 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755830AbeEaRa0 (ORCPT ); Thu, 31 May 2018 13:30:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2018 10:30:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,463,1520924400"; d="scan'208";a="44300267" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 31 May 2018 10:30:25 -0700 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.73]) by fmsmsx104.amr.corp.intel.com ([10.18.124.202]) with mapi id 14.03.0319.002; Thu, 31 May 2018 10:30:25 -0700 From: "Dilger, Andreas" To: Greg Kroah-Hartman CC: James Simmons , "devel@driverdev.osuosl.org" , "Drokin, Oleg" , NeilBrown , "Hammond, John" , "Linux Kernel Mailing List" , Lustre Development List Subject: Re: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers Thread-Topic: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers Thread-Index: AQHT+QAZU3E1b4pl5kivVFHYDbsEJ6RKjXSA Date: Thu, 31 May 2018 17:30:24 +0000 Message-ID: References: <1527603705-30450-1-git-send-email-jsimmons@infradead.org> <1527603705-30450-7-git-send-email-jsimmons@infradead.org> <20180531165426.GA23414@kroah.com> In-Reply-To: <20180531165426.GA23414@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.252.6.188] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation