Return-Path: Received: from hqemgate16.nvidia.com ([216.228.121.65]:8889 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965137AbbJHR2l (ORCPT ); Thu, 8 Oct 2015 13:28:41 -0400 From: Leandro Awa To: Trond Myklebust , Alexander Viro CC: Linux NFS Mailing List , "Linux FS-devel Mailing List" Subject: RE: RCU caching regression in kernel v4.1+ Date: Thu, 8 Oct 2015 17:28:40 +0000 Message-ID: <891c441822444259aeea17e9a72edcb9@HQMAIL102.nvidia.com> References: <1444308880.43040.1.camel@primarydata.com> In-Reply-To: <1444308880.43040.1.camel@primarydata.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-nfs-owner@vger.kernel.org List-ID: SGkgVHJvbmQsDQoNClN1cmUuICAgSSdtIHJ1bm5pbmcgdGhlIHRlc3Qgbm93LiAgSXQgc2hvdWxk IGJlIGRvbmUgd2l0aGluIHRoZSBuZXh0IDQgaG91cnMuDQoNCkJlc3QgUmVnYXJkcywNCkxlYW5k cm8gQXdhDQoNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFRyb25kIE15a2xl YnVzdCBbbWFpbHRvOnRyb25kLm15a2xlYnVzdEBwcmltYXJ5ZGF0YS5jb21dIA0KU2VudDogVGh1 cnNkYXksIE9jdG9iZXIgMDgsIDIwMTUgNTo1NSBBTQ0KVG86IEFsZXhhbmRlciBWaXJvDQpDYzog TGludXggTkZTIE1haWxpbmcgTGlzdDsgTGVhbmRybyBBd2E7IExpbnV4IEZTLWRldmVsIE1haWxp bmcgTGlzdA0KU3ViamVjdDogUmU6IFJDVSBjYWNoaW5nIHJlZ3Jlc3Npb24gaW4ga2VybmVsIHY0 LjErDQoNCk9uIFdlZCwgMjAxNS0xMC0wNyBhdCAxNDo1NyAtMDQwMCwgVHJvbmQgTXlrbGVidXN0 IHdyb3RlOg0KPiBIaSBBbCwNCj4gDQo+IFBsZWFzZSBjb3V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