Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp947253ybl; Thu, 23 Jan 2020 10:37:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwZe+L+7dnI3S4PZIBH2jAGgULsh41231syEGYng55e+d/m1+1IBUVXx3YRBOn9HauH1Ur6 X-Received: by 2002:aca:a949:: with SMTP id s70mr11962664oie.80.1579804641693; Thu, 23 Jan 2020 10:37:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579804641; cv=pass; d=google.com; s=arc-20160816; b=qB1i43sZJ5pvSsEEVctwMUmVMCSo5ex98X2JjqDaoEcKJue1sQ4EkXfyhmjQw4j/9t tTZdS+3oH4AExzary6hRq2hCznc4UCXLgia04THuPjQVtTEFoPfolZxs55v1Y2SpJO6T RA90bJJdKRMr4TcQg1ToS72MrYaHDeC1qRO0ENE8YfsECv0FIv5R96+/p38A80HnFF5S Cfrk9VZthdGwrJfWITP1jauW6HpCdrpXrcF67b6XidyFIsqEGbmD3skUNbGinVqFB08I ErPZbvbIYI0TD6ggMLO0XFXQkIpdOpMA+gj12632Dkq88gpjjzz/tnt2vkROcp85bf79 obOw== 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=+zGUlOPyRmyCdiTXXknNLv1wRGRMC8zhJksoUocQwgc=; b=HjkzafjsHi7NPuYez1weVu9gEFdFbrczx8hEhPnaZu0mkm47HcnCogoKXORclK+qly hqb2cvnuc440cRMG+3gXtcjTyMVA6cDnYRPbcZ+9gyLDKQ4OVzUrz1GwqCzfaAxIFXwh 28o5g3tXuhrp0pA9OdYfo8ua8jzytJh+FJuJN2basW1NyHTqadLu82knZGQOd+kJVHDS byhBQEJMQIUBrevvLtvYpdo9taPDDSnmyz5/7HRu668PfXKo0uvxTaTHHqy0USycngsr omej5XelwxWEjlJlMu6jKfhq6mQ3mVyNecZxesChsooDmVrFa/Om8s+c+6VzbLiw7TTH ofCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=aLazLXD5; 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 z194si1241929oia.50.2020.01.23.10.37.00; Thu, 23 Jan 2020 10:37:21 -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=aLazLXD5; 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 S1727022AbgAWSfU (ORCPT + 99 others); Thu, 23 Jan 2020 13:35:20 -0500 Received: from mail-eopbgr680130.outbound.protection.outlook.com ([40.107.68.130]:49435 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727194AbgAWSfU (ORCPT ); Thu, 23 Jan 2020 13:35:20 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PpMFqRimVWly6GI2L7cnN/pgoX9mB4PSNzdEs/8GbVgn9Zu4xP8GZ0y2y8c2OeP/G5nCuMi5+aWvylZAjwGbIIeyL7MIZmsaayYSxFE5uSumjZKXKNdx3+D4HwR583wh83LWUSj/aZkMPvath6PlfYSZDMa3xyvSWOeTFR2W00CI23/0fg/Opxc1xNZpSJUjZn61ZYkoQsz01i9rj6HAiBRt8L8+Yals502nI1QyMl3r6NVECu1y/kbsCsSBe+AM5KnnlETBVFs0eHi7Z6mVpbusrecyEgAO+aqSWKmBeiBg3qIdz2NCMGQ1wBFxev6bDcATT0W9x4eedYtNEBCULg== 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=+zGUlOPyRmyCdiTXXknNLv1wRGRMC8zhJksoUocQwgc=; b=nfZYjJXKF0wfiEZibiI78+1Ufg1UQU968vw/Rw0uKBLnFsjngM2Q0nBFVnOqTc//zG2hQQYVRObivRo5EIJz/1L9aTIq9WKjhyTjKGvKbD/99kslZq+BJbs+oYJk3Rph9SuTRxZ9j3J5gn00+KZYch/Hg/jy20hKfDWK9GYoGt8UzOWg+kOzXAU+Xcdh7xTuPOlLr9cSNjp7iux8AfF9gIVgxjtz15SAAh0s8Uofb2IJ+sBZsdqOoXqzz9ZHmxN2sVLgXoBzfXL0AsDhIvZIN+jllyTBGZpanT/Vlh3NVDMDorwtZ9Bm2ZbuE07DVifE5SM240OckQ/ianojAPmDNg== 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=+zGUlOPyRmyCdiTXXknNLv1wRGRMC8zhJksoUocQwgc=; b=aLazLXD5xO8JpC7Kn4DnoOpArDs0gPUJAOw0tgGTTpvyzC3Y2np2MsWYEOnOp3F/jBryQcxM0HJyH76IAwD8nYI8tYpTCPVhAgVdXEmv10/UjxS17BE5O51fRAlXpaRiKZFlaOunTGQf+d3fWKXfviDFvuLg+VSdvA4wpAlUqnQ= Received: from DM5PR1301MB2108.namprd13.prod.outlook.com (10.174.186.34) by DM5PR1301MB2042.namprd13.prod.outlook.com (10.174.184.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.15; Thu, 23 Jan 2020 18:35:15 +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:35:15 +0000 From: Trond Myklebust To: "dai.ngo@oracle.com" , "linux-nfs@vger.kernel.org" , "anna.schumaker@netapp.com" Subject: Re: [PATCH RFC] nfs: optimise readdir cache page invalidation Thread-Topic: [PATCH RFC] nfs: optimise readdir cache page invalidation Thread-Index: AQHV0X6U5aSV8zhXw0mJsuFxO+G2sqf4lLYA Date: Thu, 23 Jan 2020 18:35:15 +0000 Message-ID: <3a456c6e607700ee745b19d82481ec7193ca08eb.camel@hammerspace.com> References: <20200122234853.101576-1-dai.ngo@oracle.com> In-Reply-To: <20200122234853.101576-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: 7b5f76fa-f34e-4108-0cfe-08d7a032fd70 x-ms-traffictypediagnostic: DM5PR1301MB2042: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 029174C036 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(366004)(39830400003)(376002)(136003)(199004)(189003)(186003)(36756003)(76116006)(66946007)(91956017)(66446008)(64756008)(66476007)(66556008)(8676002)(81166006)(81156014)(26005)(86362001)(316002)(5660300002)(2616005)(110136005)(478600001)(2906002)(6512007)(6506007)(6486002)(71200400001)(8936002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR1301MB2042;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: 4A6WRcBAAyCXR3tyCos1tGfQ5h74CeLwHwoar3Dfh0QFV2MVyFiyKk1Q8Dr4tf6yNfKLBdlnZ2jTU4kfTROxN5l+Nopu6Gb8ae0gyLPfJJk8j5tvDz3aPeNegV/rPCw6JcDheoODt51p2SLi7K9G3o0cDSG9WYdeRZe6HCPNTHDJRpaR77Ja9L3UEDYFUq4ZdQTrgy44GZdz0knpYvwHu8qmQaCCmfCw/pKRInGJsahUri1S0UjmDUpV98vM/z00wg9qVV3qdjilQZmjQyrWW65l1mjppngxtR3WEiFnueT5QHDJvk+oe6WdMNfwlLsuVxdappXoXI99D3n2S/v4M/ZzGnoJfNTDhfh5gVXJdcUN6fMZV3ouSJKQ+QNfHTpAWs3Kx80ikkftRATqYOQ9Gcj5id+h1keSXLmUvqdapUU4wOiseV+UPjcSiYPrLZxD x-ms-exchange-antispam-messagedata: K4Ubwz2iqDxRRo1iLFmMOM4nQ98Varnvg4Nl+F/2/FyCMeJAoJQ9vdEteR0CEaBcTTvTKYmUxpiUUOaY7n7dC/6KSD02iZJp/YaURtYDB54BJVRmgRcK+cEWJll7uYMiQSyPgQE1HfFX4Oifav9pZw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <079C352F5B0558459266E1C5D54B810F@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b5f76fa-f34e-4108-0cfe-08d7a032fd70 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2020 18:35:15.6033 (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: Zftll6j6O/Faf5Fj6EUjr87BwkMhVGfq2sEWYz8zIwDMcUtVM4u3JrHTyUHz/e8FQAqsQdIKz4qT9dPMhGoxiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1301MB2042 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gV2VkLCAyMDIwLTAxLTIyIGF0IDE4OjQ4IC0wNTAwLCBEYWkgTmdvIHdyb3RlOg0KPiBXaGVu IHRoZSBkaXJlY3RvcnkgaXMgbGFyZ2UgYW5kIGl0J3MgYmVpbmcgbW9kaWZpZWQgYnkgb25lIGNs aWVudA0KPiB3aGlsZSBhbm90aGVyIGNsaWVudCBpcyBkb2luZyB0aGUgJ2xzIC1sJyBvbiB0aGUg c2FtZSBkaXJlY3RvcnkgdGhlbg0KPiB0aGUgY2FjaGUgcGFnZSBpbnZhbGlkYXRpb24gZnJvbSBu ZnNfZm9yY2VfdXNlX3JlYWRkaXJwbHVzIGNhdXNlcw0KPiB0aGUgcmVhZGluZyBjbGllbnQgdG8g a2VlcCByZXN0YXJ0aW5nIFJFQURESVJQTFVTIGZyb20gY29va2llIDANCj4gd2hpY2ggY2F1c2Vz IHRoZSAnbHMgLWwnIHRvIHRha2UgYSB2ZXJ5IGxvbmcgdGltZSB0byBjb21wbGV0ZSwNCj4gcG9z c2libHkgbmV2Z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