Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([216.205.24.194]:29782 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbdGQQEN (ORCPT ); Mon, 17 Jul 2017 12:04:13 -0400 From: Trond Myklebust To: "chuck.lever@oracle.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: i_lock contention during heavy I/O Date: Mon, 17 Jul 2017 16:04:09 +0000 Message-ID: <1500307447.4036.7.camel@primarydata.com> References: <2EBEB743-9230-4C7D-9BC5-FA6F58CAF5AB@oracle.com> <1500297979.4036.1.camel@primarydata.com> In-Reply-To: <1500297979.4036.1.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gTW9uLCAyMDE3LTA3LTE3IGF0IDEzOjI2ICswMDAwLCBUcm9uZCBNeWtsZWJ1c3Qgd3JvdGU6 DQo+IE9uIE1vbiwgMjAxNy0wNy0xNyBhdCAxMToyMiArMDIwMCwgQ2h1Y2sgTGV2ZXIgd3JvdGU6 DQo+ID4gRllJLCBJIGZvdW5kIHRoaXMgaW4gbXkgbm90ZXMuIEl0IGdpdmVzIGEgZmxhdm9yIG9m IHRoZQ0KPiA+IGtpbmQgb2YgbG9jayBjb250ZW50aW9uIHdlIHdlcmUgZGlzY3Vzc2luZyBsYXN0 IHdlZWsuDQo+ID4gDQo+ID4gTXkgY2xpZW50IGlzIGEgMTItY29yZSBkdWFsIHNvY2tldCBzeXN0 ZW0uIE5ldHdvcmtpbmcNCj4gPiBpcyA1NkdicHMgSUIsIE5GUy9SRE1BLiBJJ20gcnVubmluZyBz b21lIG11bHRpLXRocmVhZGVkDQo+ID4gaW96b25lIHRlc3RzLiBIZXJlIEkgd2FzIG1peGluZyBi dWZmZXJlZCBhbmQgZGlyZWN0IEkvTw0KPiA+IHRlc3RzLCBzbyBJIGNhbid0IHNheSBmb3IgY2Vy dGFpbiBpZiBvb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