Return-Path: Received: from mail-eopbgr710112.outbound.protection.outlook.com ([40.107.71.112]:44137 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726840AbeIPVgM (ORCPT ); Sun, 16 Sep 2018 17:36:12 -0400 From: Trond Myklebust To: "cks@cs.toronto.edu" , "jlayton@redhat.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: Correctly understanding Linux's close-to-open consistency Date: Sun, 16 Sep 2018 16:12:43 +0000 Message-ID: <2e145c9d46e2fbec262d0bc67d6b14b75b41bea6.camel@hammerspace.com> References: <20180915191102.EC92232257C@apps1.cs.toronto.edu> <9401a43633d469bde6e4f842fd6175a9dcef9c7e.camel@redhat.com> In-Reply-To: <9401a43633d469bde6e4f842fd6175a9dcef9c7e.camel@redhat.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gU3VuLCAyMDE4LTA5LTE2IGF0IDA3OjAxIC0wNDAwLCBKZWZmIExheXRvbiB3cm90ZToNCj4g T24gU2F0LCAyMDE4LTA5LTE1IGF0IDE1OjExIC0wNDAwLCBDaHJpcyBTaWViZW5tYW5uIHdyb3Rl Og0KPiA+ID4gT24gV2VkLCAyMDE4LTA5LTEyIGF0IDIxOjI0IC0wNDAwLCBDaHJpcyBTaWViZW5t YW5uIHdyb3RlOg0KPiA+ID4gPiAgSXMgaXQgY29ycmVjdCB0byBzYXkgdGhhdCB3aGVuIHdyaXRp bmcgZGF0YSB0byBORlMgZmlsZXMsIHRoZQ0KPiA+ID4gPiBvbmx5DQo+ID4gPiA+IHNlcXVlbmNl IG9mIG9wZXJhdGlvbnMgdGhhdCBMaW51eCBORlMgY2xpZW50cyBvZmZpY2lhbGx5DQo+ID4gPiA+ IHN1cHBvcnQgaXMNCj4gPiA+ID4gdGhlIGZvbGxvd2luZzoNCj4gPiA+ID4gDQo+ID4gPiA+IC0g YWxsIHByb2Nlc3Nl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