Return-Path: Received: from mx141.netapp.com ([216.240.21.12]:27854 "EHLO mx141.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932577AbcESRqi (ORCPT ); Thu, 19 May 2016 13:46:38 -0400 From: "Adamson, Andy" To: "Schumaker, Anna" CC: "trond.myklebust@primarydata.com" , "bfields@fieldses.org" , "chuck.lever@oracle.com" , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH Version 4 08/10] NFS test and add multipaths for session trunking Date: Thu, 19 May 2016 17:46:34 +0000 Message-ID: References: <1462993705-14673-1-git-send-email-andros@netapp.com> <1462993705-14673-9-git-send-email-andros@netapp.com> <4e4440f4-097f-e3c0-cd9e-34af056621e3@Netapp.com> In-Reply-To: <4e4440f4-097f-e3c0-cd9e-34af056621e3@Netapp.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: DQo+IE9uIE1heSAxOCwgMjAxNiwgYXQgMjoyMyBQTSwgU2NodW1ha2VyLCBBbm5hIDxBbm5hLlNj aHVtYWtlckBuZXRhcHAuY29tPiB3cm90ZToNCj4gDQo+IEhpIEFuZHksDQo+IA0KPiBPbiAwNS8x MS8yMDE2IDAzOjA4IFBNLCBhbmRyb3NAbmV0YXBwLmNvbSB3cm90ZToNCj4+IEZyb206IEFuZHkg QWRhbXNvbiA8YW5kcm9zQG5ldGFwcC5jb20+DQo+PiANCj4+IFRlc3QgdGhlIG11bHRpcGF0aCBh ZGRyZXNzZXMgcmV0dXJuZWQgYnkgbmZzNF9nZXRfcHNldWRvZnNfcmVwbGljYXMNCj4+IGZvciBz ZXNzaW9uIHRydW5raW5nLg0KPj4gDQo+PiBTaWduZWQtb2ZmLWJ5OiBBbmR5IEFkYW1zb24gPGFu ZHJvc0BuZXRhcHAuY29tPg0KPj4gLS0tDQo+PiBmcy9uZnMvbmZzNF9mcy5oICAgICAgICAgICB8 ICAgNyArKysrDQo+PiBmcy9uZnMvbmZzNHByb2MuYyA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