Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp924569ybh; Thu, 12 Mar 2020 13:40:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAp+cquF9vPrSzZ5DPeNTuhIW7d6sPqIeyxf+quv4QMk6VwvbQrLBAkVNZHjh57fmNLN2V X-Received: by 2002:a9d:48d:: with SMTP id 13mr7490795otm.249.1584045621876; Thu, 12 Mar 2020 13:40:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584045621; cv=pass; d=google.com; s=arc-20160816; b=pte/aybSDUdei21bFxRa+aNXJjijvoeP4joNAoDcRSgYDgORKOrdD3isb6rfuTL1RF oukH0J/Z/UI9gEV8+oBYpshZKLkbQroFxP5hCPPbTvpyHUPlEwZd2yjKMW2mbENkzTPP N0tp+UhXpWnu9wh6X2AkW7b3+KPWxYNoW/y4U0i5sQ002ptbwmU3weNwTQq94vNmvAI6 YznLo7oP+Htvtr0Emcv/efgRJ2QooAPmV6biZTj9ExBFWl6TNlfcRyLpd5TIWrQB/KL5 BVzrYtYwQ3M8gfzDL9GYnQSyuXKAriSiDAMss15wvFDiaOEloUFe61raREuiekIPXdXq VJyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=4E+qZ61hPf+M+A2NWmdYVOIHhgbdjjzrxsSlCO+gEfE=; b=06eTZTEXS8xLjHdDUbebQR5/BGsMTURH+xQcJ5Adr9+/RmxvV24EwhqgbQVgdws4LF bq0Gr4HbId9lc2FHbXWRvNUcxQEtp7UxXcHE6jrOglrk/rBCrfcr7bR8pnWcrhiigWq/ TnmzkXAkP4PD2ejAhsCvvu0D0T2AiL3d+KDSiXsvCP/hnYscsty00N9Dt2K7VTa7ktgQ gB0DSJoYYVVNBmdSWQlUSCXUveqx0r0R1zgJvruhStrkpoQfYGaZvE9Rt6pMJoE2oIMi HTBFKkMzlTCTO3KalI78Ow2xoDbf/ZiF2IAks4wEgHR84KFIbOahCxUh49Z1577OPush t0Fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@netapp.onmicrosoft.com header.s=selector1-netapp-onmicrosoft-com header.b=ICDu8Qf2; arc=pass (i=1 spf=pass spfdomain=netapp.com dkim=pass dkdomain=netapp.com dmarc=pass fromdomain=netapp.com); spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 j78si301425oih.19.2020.03.12.13.40.08; Thu, 12 Mar 2020 13:40:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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=@netapp.onmicrosoft.com header.s=selector1-netapp-onmicrosoft-com header.b=ICDu8Qf2; arc=pass (i=1 spf=pass spfdomain=netapp.com dkim=pass dkdomain=netapp.com dmarc=pass fromdomain=netapp.com); spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbgCLUjl (ORCPT + 99 others); Thu, 12 Mar 2020 16:39:41 -0400 Received: from mail-dm6nam10on2074.outbound.protection.outlook.com ([40.107.93.74]:43808 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726984AbgCLUjl (ORCPT ); Thu, 12 Mar 2020 16:39:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iL3uzNS3upcjm0UKIJBfhPD7C/O59IAnItlp0HAMRVMA6Kv2+tDXAU/hjbsyMpTTTry80o6jwYOOfpZ9Yc9hV4+vUOwgL7Pp/N6QKDlHCgQ5sYLHqbwvnaQ0asDY4P5hStBz5qUJlfn2Sho9P0CDL36UL4gbrg106ebmXG0YI5g3B5qEIUEbJeyn2SZvH2MHuTTbenM26t5aNn1CullhaxDmmPDdN1bSAA7GWAdXzaBN3pSLogG8dfcxg7zj3m/pipO5s2zPJoNo/ywvMdNunZXI0FRMTwSClG8/Qml8m4V73ZtDSWGJKxSIAABNw0/Xre941+R4yzoxR1Cn2PaZBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4E+qZ61hPf+M+A2NWmdYVOIHhgbdjjzrxsSlCO+gEfE=; b=hBtvFbJsG0hB3lf7c1BHQ2jio+nWV+NqdhK/aX6mZ4pTbHw1I0gRT4bxph3oDBPk1jONB8d3l3u9AutGkrd2Sj2BnCq9iwVu8/WyKTjnfIaFp9Y/T8UXIeMkmjDdESh6jQQTnpAERdxbXmiO0J7ntrXKL2c1z7M9qiKdDOPubgeYXh5I2FfoaT4nc8LIpo6FH/0SgEY/UX1xpVtJ2zrKRwy4EIKOPCmTGd/X1IOVue+XowMSiKd8+IOShIGd6kLkb+7HOtE0yj1/PMoyh9UoQjHfsopcUcDpp5UMxLSlhr7J9m9YLNLfyI1su39VZwCLnHUYvRvoZYuHfobJyaIOVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netapp.com; dmarc=pass action=none header.from=netapp.com; dkim=pass header.d=netapp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4E+qZ61hPf+M+A2NWmdYVOIHhgbdjjzrxsSlCO+gEfE=; b=ICDu8Qf2eDhfTUF/IUYpdbF/TaQO1/STMU1HBUfXcC6m+ITkdPWi4DwZI5Mpsy47m0IG2pwymVbgak6Gw2xPESFVuYilo9YftL4rZ2fSeGBHd3xINRgz8DIUzv8iQh/3QFQHg9V5ol355/Uhcr0Spb1j+q7tyt+s139PYILmbB8= Received: from DM6PR06MB6617.namprd06.prod.outlook.com (2603:10b6:5:25f::14) by DM6PR06MB4170.namprd06.prod.outlook.com (2603:10b6:5:2b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17; Thu, 12 Mar 2020 20:39:28 +0000 Received: from DM6PR06MB6617.namprd06.prod.outlook.com ([fe80::f1d5:1417:3acd:c3be]) by DM6PR06MB6617.namprd06.prod.outlook.com ([fe80::f1d5:1417:3acd:c3be%6]) with mapi id 15.20.2793.018; Thu, 12 Mar 2020 20:39:28 +0000 From: "Schumaker, Anna" To: "fllinden@amazon.com" , "linux-nfs@vger.kernel.org" , "trond.myklebust@hammerspace.com" Subject: Re: [PATCH 13/13] NFSv4.2: add client side xattr caching. Thread-Topic: [PATCH 13/13] NFSv4.2: add client side xattr caching. Thread-Index: AQHV998o+HLVpHFjiUCUVog27Wj5Q6hFbOaA Date: Thu, 12 Mar 2020 20:39:28 +0000 Message-ID: <10e7305b1d90e73a4c08edd2ee56bcc9490c0d23.camel@netapp.com> References: <20200311195613.26108-1-fllinden@amazon.com> <20200311195613.26108-14-fllinden@amazon.com> In-Reply-To: <20200311195613.26108-14-fllinden@amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anna.Schumaker@netapp.com; x-originating-ip: [68.42.68.242] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 28601ee1-2076-42dc-f2a5-08d7c6c575c9 x-ms-traffictypediagnostic: DM6PR06MB4170: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-forefront-prvs: 0340850FCD x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(136003)(376002)(39860400002)(346002)(396003)(199004)(71200400001)(8676002)(478600001)(186003)(26005)(8936002)(6506007)(81166006)(81156014)(36756003)(86362001)(2906002)(2616005)(110136005)(6512007)(316002)(66556008)(76116006)(66476007)(5660300002)(6486002)(66946007)(91956017)(66446008)(64756008)(30864003)(87944003)(579004)(559001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR06MB4170;H:DM6PR06MB6617.namprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; received-spf: None (protection.outlook.com: netapp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 304t/UJNoGM08kd6tKMoo6tt0u3LtG5mEjg4QMVlVvJIkETVU7DnMkZ6PO2XgpOe71EjwDt+ozQ8yhLWmQeCwSlgkQ5XXOYg4C8bDa3/o/uI5SorcO5e0NQXacOTP+nC3te8DIFZmgJJQDhKj/A54elsFpbknutnhPqnZ3pYzxGchPP5GsWpo06bWXarDT5s2rhw6T2Udbki3H8AQB+HfXYLjPOHyYi3NY5iLFv+MWKOdneIjV2cdJFpdW1b+y3+eoXHMvLIU0GGcL4BCQU+NAneBYHclmHH0F2h8ne0r9Yiu06I0JtXjp5rug3jJt4hhSw5VQf4DGfG9IsAeJ65+i8mtOCNghLUzyQIR5kIVj4i0yvAH8JHK6AT9Tw/WIP8OiaN/dRbUAQLXRvzl2B1yNMfm5u/WgkI6GhiI2OJM56l9Y13zj4mNh/JkS0k2G2qOpxXzBix08ZkMIyq7EsOp0/OiK1Rzi+hZcQpk0C0/XbIguhM1k8V/w169Sspqf/6 x-ms-exchange-antispam-messagedata: Yki3lh4fix6sYfMmU5KnGac8b6uRzXfNvEcoozVI1FQ3u52R9JcxlCVIa1Ukzx3RYPqvcRLfgUJiEr3hkzKPde/Rx3dVEtGc+wxJeBYON5DxL2xlRxIX0EXYNYxKtXr50ZAUXp4YwHjRZI8SGwnk8A== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <9ECC3540A50BB74BAA53CB5DDCD12366@namprd06.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: netapp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28601ee1-2076-42dc-f2a5-08d7c6c575c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2020 20:39:28.2155 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: y8WU2eGfscKhNiBRH3XypFxmWd6pQD39nC+gh0pagQ0dt8lgBs5YCh7Qx/QTNPDfmZpQ4zq87Q82awffWQL+6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR06MB4170 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org SGkgRnJhbmssDQoNCk9uIFdlZCwgMjAyMC0wMy0xMSBhdCAxOTo1NiArMDAwMCwgRnJhbmsgdmFu IGRlciBMaW5kZW4gd3JvdGU6DQo+IEltcGxlbWVudCBjbGllbnQgc2lkZSBjYWNoaW5nIGZvciBO RlN2NC4yIGV4dGVuZGVkIGF0dHJpYnV0ZXMuIFRoZSBjYWNoZQ0KPiBpcyBhIHBlci1pbm9kZSBo YXNodGFibGUsIHdpdGggbmFtZS92YWx1ZSBlbnRyaWVzLiBUaGVyZSBpcyBvbmUgc3BlY2lhbA0K PiBlbnRyeSBmb3IgdGhlIGxpc3R4YXR0ciBjYWNoZS4NCj4gDQo+IE5GUyBpbm9kZXMgaGF2ZSBh IHBvaW50ZXIgdG8gYSB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