Return-Path: Received: from mail-co1nam03on0113.outbound.protection.outlook.com ([104.47.40.113]:51276 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964827AbeEJPZS (ORCPT ); Thu, 10 May 2018 11:25:18 -0400 From: Trond Myklebust To: "bfields@fieldses.org" , "vallish@amazon.com" , "anna.schumaker@netapp.com" , "linux-nfs@vger.kernel.org" , "jlayton@kernel.org" CC: "jsstraus@amazon.com" Subject: Re: [PATCH 2/2] SUNRPC: Reconnect with new port on server initiated connection termination Date: Thu, 10 May 2018 15:25:14 +0000 Message-ID: References: <1525932774-98736-1-git-send-email-vallish@amazon.com> <1525932774-98736-3-git-send-email-vallish@amazon.com> In-Reply-To: <1525932774-98736-3-git-send-email-vallish@amazon.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDE4LTA1LTEwIGF0IDA2OjEyICswMDAwLCBWYWxsaXNoIFZhaWR5ZXNod2FyYSB3 cm90ZToNCj4gU2VydmVyIGluaXRpYXRlZCBzb2NrZXQgY2xvc2UgY2FuIGNvcnJ1cHQgY29ubmVj dGlvbiBzdGF0ZSB0cmFja2luZw0KPiB0YWJsZSBpbiBjb25qdW5jdGlvbiB3aXRoIG90aGVyIG5l dHdvcmsgbWlkZGxlIGJveGVzLiBJbiBzaXR1YXRpb25zDQo+IGxpa2UgdGhlc2UsIGNsaWVudCBj b25uZWN0aW9uIGhhbmdzIHRpbGwgY29ubmVjdGlvbiBzdGF0ZSB0cmFja2luZw0KPiB0YWJsZSBl bnRyaWVzIGFnZSBvdXQgYW5kIGdldCBwdXJnZWQuIENsaWVudCByZWNvbm5lY3Rpb24gd2l0aCBh IG5ldw0KPiBwb3J0IGluIHN1Y2ggYSBzaXR1YXRpb24gd2lsbCBhdm9pZCBjb25uZWN0aW9uIGhh bmcuDQo+IA0KPiBSZXZpZXdlZC1ieTogSmFjb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