Return-Path: Received: from mail-eopbgr700090.outbound.protection.outlook.com ([40.107.70.90]:18444 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729938AbeHHXkk (ORCPT ); Wed, 8 Aug 2018 19:40:40 -0400 From: Trond Myklebust To: "chuck.lever@oracle.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: RFC: xprt_lock_connect Date: Wed, 8 Aug 2018 21:19:06 +0000 Message-ID: References: <55352755-3A99-4193-98E6-25A9B8181F6E@oracle.com> In-Reply-To: <55352755-3A99-4193-98E6-25A9B8181F6E@oracle.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gV2VkLCAyMDE4LTA4LTA4IGF0IDE1OjUzIC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g SGkgVHJvbmQtDQo+IA0KPiBGb3IgbWFpbnRhaW5hYmlsaXR5IGFuZCBsZWdpYmlsaXR5LCBJJ20g YXR0ZW1wdGluZyB0byBtYWtlIHRoZQ0KPiB0aGUgUlBDL1JETUEgY29ubmVjdCBsb2dpYyBhY3Qg YSBsaXR0bGUgbW9yZSBsaWtlIHRoZSBUQ1ANCj4gY29ubmVjdCBsb2dpYy4gSSBub3RpY2VkIHRo aXMgcGF0Y2g6DQo+IA0KPiBjb21taXQgNzE4YmE1Yjg3MzQzZGYzMDMwMTc1ODUyMDBlZTE4MmU5 MzdlYWJmYw0KPiBBdXRob3I6ICAgICBUcm9uZCBNeWtsZWJ1c3QgPHRyb25kLm15a2xlYnVzdEBw cmltYXJ5ZGF0YS5jb20+DQo+IEF1dGhvckRhdGU6IFN1biBGZWIgOCAxODoxOToyNSAyMDE1IC0w NTAwDQo+IENvbW1pdDogICAgIFRyb25kIE15a2xlYnVzdCA8dHJvbmQubXlrbGVidXN0QHByaW1h cnlkYXRhLmNvbT4NCj4gQ29tbWl0RGF0ZTogU3VuIEZlYiA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