Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([216.205.24.194]:52628 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753960AbcICQQ6 (ORCPT ); Sat, 3 Sep 2016 12:16:58 -0400 From: Trond Myklebust To: "anna.schumaker@netapp.com" , "hooanon05g@gmail.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: 4.8-rcN nfs O_DYSNC, write(2) doesn't return ENOSPC Date: Sat, 3 Sep 2016 16:13:17 +0000 Message-ID: <1472919194.11308.1.camel@primarydata.com> References: <3647.1472877116@jrobl> In-Reply-To: <3647.1472877116@jrobl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gU2F0LCAyMDE2LTA5LTAzIGF0IDEzOjMxICswOTAwLCBKLiBSLiBPa2FqaW1hIHdyb3RlOg0K PiBIZWxsbyBORlMgZm9sa3MsDQo+IA0KPiBJIGFtIG5vdCBzdWJzY3JpYmluZyB0aGlzIE1MLiBQ bGVhc2UgQ0MgdG8gbWUgZXhwbGljaXRseSB3aGVuIHlvdQ0KPiByZXBseS4NCj4gDQo+IEkgZm91 bmQgYSBwcm9ibGVtIG9mIE5GUyBpbiBsaW51eC12NC44LXJjWzEyM10uIEhlcmUgaXMgYQ0KPiBy ZXByb2R1Y2libGUNCj4gc2VxdWVuY2UuDQo+IA0KPiAtIG1vdW50IGEgcmF0aGVyIHNtYWxsIHRt cGZzLCBmb3IgZXhhbXBsZSAvdG1wL3NydnINCj4gLSBleHBvcnQgaXQgdG8gbG9jYWxob3N0DQo+ IC0gbW91bnQgbG9jYWxob3N0Oi90bXAvc3J2ciAvdG1wL2NsbnQNCj4gLSBkZCBpZj0vZGV2L3pl cm8gb2Y9L3RtcC9jbG50L2Z1bGwNCj4gDQo+IEFmdGVyIGEgd2hpbGUsIGRkIGVuZHMgd2l0aCBF Tk9TUEMgZXhwZWN0ZWRseS4gQnV0IG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