Return-Path: Received: from mail-eopbgr730137.outbound.protection.outlook.com ([40.107.73.137]:21088 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751377AbeFVWbh (ORCPT ); Fri, 22 Jun 2018 18:31:37 -0400 From: Trond Myklebust To: "bfields@fieldses.org" , "chucklever@gmail.com" CC: "linux-nfs@vger.kernel.org" , "manjunath.b.patil@oracle.com" Subject: Re: [PATCH 2/2] nfsd: return ENOSPC if unable to allocate a session slot Date: Fri, 22 Jun 2018 22:31:34 +0000 Message-ID: <180d25ce5474539f15a84a23258d15c71ec11ad9.camel@hammerspace.com> References: <1529598933-16506-1-git-send-email-manjunath.b.patil@oracle.com> <1529598933-16506-2-git-send-email-manjunath.b.patil@oracle.com> <20180622175416.GA7119@fieldses.org> <148E65CF-D3D4-4E43-A190-822C5F7824B9@gmail.com> In-Reply-To: <148E65CF-D3D4-4E43-A190-822C5F7824B9@gmail.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gRnJpLCAyMDE4LTA2LTIyIGF0IDE3OjQ5IC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g SGkgQnJ1Y2UtDQo+IA0KPiANCj4gPiBPbiBKdW4gMjIsIDIwMTgsIGF0IDE6NTQgUE0sIEouIEJy dWNlIEZpZWxkcyA8YmZpZWxkc0BmaWVsZHNlcy5vcmc+DQo+ID4gd3JvdGU6DQo+ID4gDQo+ID4g T24gVGh1LCBKdW4gMjEsIDIwMTggYXQgMDQ6MzU6MzNQTSArMDAwMCwgTWFuanVuYXRoIFBhdGls IHdyb3RlOg0KPiA+ID4gUHJlc2VudGx5IG5mc2Vycl9qdWtlYm94IGlzIGJlaW5nIHJldHVybmVk IGJ5IG5mc2QgZm9yDQo+ID4gPiBjcmVhdGVfc2Vzc2lvbg0KPiA+ID4gcmVxdWVzdCBpZiBzZXJ2 ZXIgaXMgd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