Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp63462ybl; Wed, 22 Jan 2020 16:10:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzD9iCch1rO4YIwYA6yiE95nppqlLR3lbS9oTZot+iDmU0fN80cdu5p/J8/CNnU1E6WVgz5 X-Received: by 2002:aca:b808:: with SMTP id i8mr8416459oif.66.1579738259373; Wed, 22 Jan 2020 16:10:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579738259; cv=pass; d=google.com; s=arc-20160816; b=a2dQBtC1mYogEux0S4o5PZ8K0WKf4vc8bY83gQPDTr0GY47GGdPKmvkWZ05W3irATB uJ3TD83Nht43CbWRlK/QT0HlMYvmeEQplEv01tSY1zeqTP9XMZ/Z8mFw8eIG2Q1ymoXr yPhBxRUV8vlQx7kIcMpKfXRR15XNfTicJp8AC19FTIu4R/vY2JJJb/rDZoFIoNE9naI4 fxLyT7Ag/e5oiYf/Rk46aCjtSBNEcqHag8wAWXZIGODd9O3IpSIFqW9cOcjc7wf/CO4G fXxoWraRiDA4lWWuJMoEbBXC8B7MryxqFyeWEQniu+6BctYsNagEcaE8YDVhOX+MSWyJ +esg== 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=9MmFpK1dZOGEmR4hu47ADJexDSgdEI8lEVgU3hx7gwQ=; b=mjCJiwX1cd9/F3ywtWydhj5BZl/7tOvEcbgIl48FTfal7hl/Znvn3PCGkKFrgLreSQ UeNLh2XHCz2Yxfg471DQVH9vxGpyCw3yQoqM647/E/PAp7uLhhgW/kTDCG/rnnXAskWz 9c6zIppF9Cw+wyO1oHnIFcoGeB9JrJoBqIWSqCaFEQgB3ctJIWvDvB8se+luiBbYigeY /Uba/LJKQu20U3jIXqpYYf3WtMEArbRKoa1deS558MOJB0P+kduKtbvYfI+zV2y1WXv6 z1YuUKnYZB4uxf5oek08Y3XxB50fNrHWg3xZbQhsYcPj2s+wOAIrbw8R75WVec5Mmt9l kLVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=KCrJrSPG; 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 w68si40333oia.223.2020.01.22.16.10.24; Wed, 22 Jan 2020 16:10:59 -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=KCrJrSPG; 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 S1725924AbgAWAKX (ORCPT + 99 others); Wed, 22 Jan 2020 19:10:23 -0500 Received: from mail-bn8nam11on2100.outbound.protection.outlook.com ([40.107.236.100]:20702 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbgAWAKX (ORCPT ); Wed, 22 Jan 2020 19:10:23 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C8MmNdxDkKvYuHVvqsQLksEeJWEMDap3Fcpp1b7dz9WDaTh2gFEMjy5qx1deqpndeyN8vjTC9s4wcyQhRupJuYNdxmnEht9MY0PuX+Dqv6sAqkMg8cvhTudSsSo2DMLWjKFlqr1BibuhGFEjg5mAFb1ooFdY4JkdKkQasDyJlSCyOU0m0fvBQHjdH8hdytUelZtwSjwh4zyXicWIQRJOuNBNDq+grpsNjogHIu1Ec+3Vxek3nEvoZIC6V8JjtgWfE4MjA3SO3H3t1CK74V5sMdlDLS/Ev7oUz7zumZEAJeaiWEqtU/pTTljjJB6MABUn5FrtQWuQWiupZC86RMYJrw== 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=9MmFpK1dZOGEmR4hu47ADJexDSgdEI8lEVgU3hx7gwQ=; b=K4B+MlG08hrKQSsadADqNqs7qMvKnhkTZnjl549uO7bvicyNaclJfFiDDpLS7u6Fy4XJsx8HRgCfarf0n65DIuqsEjYieqG3omLUFDLiuoowC5h2u2aGpG4Bk18S5AldoNEB/Db8/TJo2fb9Yx2AK0a5QqOQ+qaP04K2Dczjcfo/cVbXooTEXL6WOQQ2fiBr4mXX8bnhygvYicpmuAsSENTOTztHoHc2aEpP6EP/+W8lWgW3DBb1NSSilxD+NWF3GLJGGyv/NHUZ1/HR4u6anb4dngTftXkaNXzz7x3vlgMRQQriMINdkCFXFwSYWbQ8azVGv+kGWJBquWSWmcAUnA== 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=9MmFpK1dZOGEmR4hu47ADJexDSgdEI8lEVgU3hx7gwQ=; b=KCrJrSPG5eJVWXqiou/5a5ANbj6ZCu37OQevV4loxUmIuFKB/YNSLdf7fdo55DtHajJKmggkhWVDuAG4zOamjtkBJQjqDqAv5ZWO7jxzSqQjUOpJ7jURCKtmbdGYb4gaIaQTnVhBtOHXafnRSdmbiLgxQhA4J/mOm6AqH+C+IGk= Received: from DM5PR1301MB2108.namprd13.prod.outlook.com (10.174.186.34) by DM5PR1301MB2171.namprd13.prod.outlook.com (10.174.181.164) 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 00:10:16 +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 00:10:16 +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+G2sqf3X/sA Date: Thu, 23 Jan 2020 00:10:16 +0000 Message-ID: <5d9ccb1b287760cc11798bef496510b9cf8aee75.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: 117bad6f-6293-4d7b-fd1c-08d79f989fef x-ms-traffictypediagnostic: DM5PR1301MB2171: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 029174C036 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(346002)(136003)(376002)(366004)(39830400003)(199004)(189003)(478600001)(81166006)(81156014)(316002)(2906002)(6486002)(8936002)(2616005)(8676002)(110136005)(6512007)(36756003)(5660300002)(66446008)(66476007)(71200400001)(26005)(76116006)(66946007)(66556008)(64756008)(6506007)(86362001)(186003)(91956017);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR1301MB2171;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: UNFN9fc+cRlyZZn0twpN9uFH3eV/n9a8rItUJKzZ0Iz4wvSw6The4Gmw4G+1u04pq4AkpHqH4ct5m7Hsb0dX2nm1nWmE6/ptKv0g3q6vQr1MrV8q4Q4x7Jzav+8XrD/5Kd7hUrWSUHhq2SbzQfbMLoRj3rWgW/VtjyppTyhp3ke0aNzPcj7fzgPrO4tC4wNPnWSiFRxVujXhAv0n36EF6YIlTD+MBcFf2bQYG5LjnImK3OuB2vngwXtozjXQWnALh3zTSWLm5YfJUIpaRl9DDbjkYfGnUda+PbbyU0a7IxVHQAG3MFCt0Y85CbWgvI9tQc+PKvd0I/S3cNAp/SDejxOCo9v2TFoQny4Xv3RUvGJ2pLQnlBxDNVIIXjcs28A7fxHjrzqqpHYHGOBFAm5nZjGOY0P0nj1yfoEcJ7EDKNZmUC/4LQ6C3uUARF52F5ij x-ms-exchange-antispam-messagedata: iduAdW+PEa6IYUtBDGMM+Li2tA9/rLKFT2ZA8Re0DQ+eaHYVDeleDdc8UmKNg08uIVOVHQYOMZccjhqyyWsoVWkdev7Wk3Lhg/VhWCFpBoihItxr9C7IMUsL8yMRTqipzru0buKRgn4uUYHUdSBXRQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <530B01AF5827A2419A013795981F5135@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: 117bad6f-6293-4d7b-fd1c-08d79f989fef X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2020 00:10:16.2015 (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: hX1wDgUGRF1tkho6TvGJ15XCC9vveafNr5TsFQwks7FDjXdyRWVm9XbXtQVCMiYoHUkoZOO92HvDva8ba9XCRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1301MB2171 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 IHRoZSAnbHMgLWwnIHRvIHRha2UgYSB2ZXJ5IGxvbmcgdGltZSB0byBjb21w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