Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp949864ybl; Thu, 23 Jan 2020 10:40:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz6/w9+DNAHjZ8KG5reDWwg15ioiPjnricChziB9K+FPQxPaPrfc+9W8N5OoSdr54aTXCJj X-Received: by 2002:a9d:5885:: with SMTP id x5mr11968504otg.132.1579804830300; Thu, 23 Jan 2020 10:40:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579804830; cv=pass; d=google.com; s=arc-20160816; b=XOd+wfJi3IqN6S/+wU+ePGmnXmX+VmLoAoqA8LtU6MJZ1SybCIwVsd3RKr+J2MjA37 EQvMdJum1cn9hC5GjCxlS/kMStY+bOoDM2fVicuqXP95rUQygRvxJ7op0qJIpGUPS5cZ yiYiir7aSgytQY+SaBvRXmqEtX9I0GTIr+O22Cu8pBCEVjcqlYJDs9MpfEhi5Zeqotu4 wPUooAdYn4sqsHWZWSCO2dsqz2UxwZphZ4Fa5Q2FmedysjGNIjRkammEObz8/qayblRK MgQsOJJ9F2bR5tpY4fMbOxmBDShxZsprmE3B7yimVNYM3KJPae+VxAslWKmdZ4WVIw3/ Qddw== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from :dkim-signature; bh=1DULSO1cx09+FCLinGQeChHJRUnkN3PiygLov4Ro4mk=; b=CWXkDnxqSZtpcAAgXvT65gQEvKziuhFBHzJ/kmyg1g2ZhWtolmA2jMmzj0SSjF6ohO IcTA2IZfcdQQUug6EQeORDlTI3YR4p6EZy/feCldj7F89rSnNo23xsZtY3ISv3BpoZdh OXa/6iAgy3aqcWR/a4/QAF8Rtc5YHNUIFe1hsJrPiG2pnirmXQ5cYF1pSkWHu3s0yWvd HoZTIZ1gbRjVx7tPL7H+QeawHGg0JVkiGRTPjUT4iYrzhqNkK8D4l/7fYcwRptXNBQhk efJm8SRgCjx8e2xK0zxIXBABwNCz3KgfL4465itbY0rxpObzep/KlHQsgJcsWcGRNOeZ OeKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=gd0mrehC; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si1226961oib.59.2020.01.23.10.40.18; Thu, 23 Jan 2020 10:40:30 -0800 (PST) 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=@hammerspace.com header.s=selector2 header.b=gd0mrehC; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728931AbgAWSjE (ORCPT + 99 others); Thu, 23 Jan 2020 13:39:04 -0500 Received: from mail-dm6nam11on2094.outbound.protection.outlook.com ([40.107.223.94]:49716 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727590AbgAWSjD (ORCPT ); Thu, 23 Jan 2020 13:39:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D08HoAwjwpPPiZEECUn5cJ6V/ynuBBqwWJR1XSoy19aRiabeyOxMv5WuxqE+hrfC/25SNeszSnBBcAD+mnPjOM7BXOKsetJBIPSo38Y9bviUpNyx6gW1pw3Qseyi1D/x6DBN9huUdXTlp5QXdfYK0YxlmEUiOPxmKj5744/PxmnHcMJlTSMM0rZW7sKbi/6I+KrrrXD6i2lhMbBhQurWZxg/KOB2DZIVjsFa/qcAAXvKXwe0xEF8J3jEHmcbNBrFECqNFlZutO+bgFlpVy1KZsFnKs/zQdpkA2OalCmtMHOLfSpSZK2Sw0MSoqTf86DE0QwSqQqHzmcK+SIhtCmDKA== 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=1DULSO1cx09+FCLinGQeChHJRUnkN3PiygLov4Ro4mk=; b=iCxHY02lMEYedRf/NaNlF/svPdDS74dfadAy+sxboN1PJEpepIlfhD0i2SUzcMjfEm1aCEHg5xjH2NCQxc1fqlNFAGN1t39zd9BjRzO3WwVvBeoSwYGgv5+cAV6t1ujnWSjgyePFbQSWHCgU7SFwYxIF+qUfM0hY772QT4AUkxCESH10NCs45/vX2BpsAkYWeHT7nYxJ/ZBb2O5e2aKiaoemRARyQ+hsaqtAu38F3tCfSvkERoQqfuzvukbOlbdh6DjgP0WWhWIbWNCCXIASe7KONiw7SHmVDsXz33DuGfnmy7DcVtGSQjmZsets1t6IQOCKtD0LCkR1yoXiKHxFdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1DULSO1cx09+FCLinGQeChHJRUnkN3PiygLov4Ro4mk=; b=gd0mrehCzFvMAjqBmQJcjv2m/5JEU2J7lyKrWrFB1oG7rdEJnTt4k0oEoATDlruFEmSlLdbtfxKLQLLPGtQ+ltwspMh7b3lzLfYbUnBqi7D9GmEWLgCNjquyv1xY4DMuvZzofg/6DVZ8OUVI/lstAvmcxRYCs79nomiasZudOcc= Received: from DM5PR1301MB2108.namprd13.prod.outlook.com (10.174.186.34) by DM5PR1301MB1948.namprd13.prod.outlook.com (10.174.184.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.11; Thu, 23 Jan 2020 18:38:57 +0000 Received: from DM5PR1301MB2108.namprd13.prod.outlook.com ([fe80::9449:ded8:d7b:a344]) by DM5PR1301MB2108.namprd13.prod.outlook.com ([fe80::9449:ded8:d7b:a344%3]) with mapi id 15.20.2665.017; Thu, 23 Jan 2020 18:38:57 +0000 From: Trond Myklebust To: "dai.ngo@oracle.com" , "linux-nfs@vger.kernel.org" , "anna.schumaker@netapp.com" Subject: Re: [PATCH v2] nfs: optimise readdir cache page invalidation Thread-Topic: [PATCH v2] nfs: optimise readdir cache page invalidation Thread-Index: AQHV0Y7WuqNjCP7pwUGBEBMYOB/nk6f4lZ4A Date: Thu, 23 Jan 2020 18:38:57 +0000 Message-ID: References: <20200123014539.13991-1-dai.ngo@oracle.com> In-Reply-To: <20200123014539.13991-1-dai.ngo@oracle.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=trondmy@hammerspace.com; x-originating-ip: [63.235.104.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3310b19e-1d08-44cc-9aa7-08d7a03381ef x-ms-traffictypediagnostic: DM5PR1301MB1948: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 029174C036 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(136003)(346002)(376002)(39830400003)(199004)(189003)(81166006)(66946007)(81156014)(76116006)(186003)(8936002)(6512007)(91956017)(8676002)(26005)(36756003)(66476007)(66556008)(64756008)(66446008)(2616005)(6486002)(2906002)(5660300002)(86362001)(6506007)(71200400001)(478600001)(110136005)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR1301MB1948;H:DM5PR1301MB2108.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hammerspace.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3jV59uTFC3EBU9tuljfOg6YKJ/TTTjgodmCIkh3RPS81Bd5BbuuZg5KmUTMntDSBtubjHjgSteRN+sEOm7lA8GEynUIsuEs1Tvp09TsoPnI3ult1CqbIKHQBiAGceGsAsLwo7gHn2Ogl+2o6IaURpNJIMhEvjrkM1V69p01J52HukGET+mYbagSjn0bVyWBnARMyCHZeIaVbk6mrbIAQAEw3Zw5KlFrMY5ch4VimOXpGaQKPCx5xrsYyxFH5ijAoa7F49lv62t+3XtQMHGtAlgWkDxB1JqjoxG3DVFQsf6B5TJrt3ZWOm5JqVShooOeKQleuhzdz0s4g/sWrNwC6W05iLLJ59bWdgh7F0U7NjJJnkqtW16QrQBW49Op5UPxM5zNdpGGEOB0UifdospFgmSqa4PKSalqzIDwZqZAqGnBPuL5g1GaW7P45w9rGuRwW x-ms-exchange-antispam-messagedata: oqq75P4C88XZe4z2Y3pG/ysfrMf2oTTVFyZrOd1E984jmvABTUpFKQSpScyPAwZvCX9TcagVflBVnekW31KXbMIOYqVH+eoDRBVeIY4ex7NTCoJV/86ozHmqyI7SgrV5BIY/jbfmWZdjCF8a2qnXFg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <5DD1D758CDD3AA47B2D9700370AF32C6@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3310b19e-1d08-44cc-9aa7-08d7a03381ef X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2020 18:38:57.8735 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: iihinLRhHduHjZAVzJcERgAIM3wN8UudOhPnsHwOthF9BkFdnsdBJa5h3JAu0U+LI5irTHFk8u9hI2FVnG7G6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1301MB1948 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gV2VkLCAyMDIwLTAxLTIyIGF0IDIwOjQ1IC0wNTAwLCBEYWkgTmdvIHdyb3RlOg0KPiBXaGVu IHRoZSBkaXJlY3RvcnkgaXMgbGFyZ2UgYW5kIGl0J3MgYmVpbmcgbW9kaWZpZWQgYnkgb25lIGNs aWVudA0KPiB3aGlsZSBhbm90aGVyIGNsaWVudCBpcyBkb2luZyB0aGUgJ2xzIC1sJyBvbiB0aGUg c2FtZSBkaXJlY3RvcnkgdGhlbg0KPiB0aGUgY2FjaGUgcGFnZSBpbnZhbGlkYXRpb24gZnJvbSBu ZnNfZm9yY2VfdXNlX3JlYWRkaXJwbHVzIGNhdXNlcw0KPiB0aGUgcmVhZGluZyBjbGllbnQgdG8g a2VlcCByZXN0YXJ0aW5nIFJFQURESVJQTFVTIGZyb20gY29va2llIDANCj4gd2hpY2ggY2F1c2Vz IHRoZSAnbHMgLWwnIHRvIHRha2UgYSB2ZXJ5IGxvbmcgdGltZSB0byBjb21wbGV0ZSwNCj4gcG9z c2libHkgbmV2ZXIgY29tcGxldGluZy4NCj4gDQo+IEN1cnJlbn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