Return-Path: Received: from mail-by2nam03on0091.outbound.protection.outlook.com ([104.47.42.91]:4614 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727518AbeGTMgB (ORCPT ); Fri, 20 Jul 2018 08:36:01 -0400 From: Trond Myklebust To: "sargun@sargun.me" CC: "kinglongmee@gmail.com" , "Anna.Schumaker@netapp.com" , "ebiederm@xmission.com" , "linux-nfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH] net/sunrpc: Add user namespace support Date: Fri, 20 Jul 2018 11:48:02 +0000 Message-ID: <6c61182847d8f2bfbf9e6d0fb010b40c53e921d7.camel@hammerspace.com> References: <20180719174246.GA19824@ircssh-2.c.rugged-nimbus-611.internal> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDE4LTA3LTE5IGF0IDIzOjEyIC0wNzAwLCBTYXJndW4gRGhpbGxvbiB3cm90ZToN Cj4gT24gVGh1LCBKdWwgMTksIDIwMTggYXQgNTozNyBQTSwgVHJvbmQgTXlrbGVidXN0DQo+IDx0 cm9uZG15QGhhbW1lcnNwYWNlLmNvbT4gd3JvdGU6DQo+ID4gT24gVGh1LCAyMDE4LTA3LTE5IGF0 IDE3OjAwIC0wNzAwLCBTYXJndW4gRGhpbGxvbiB3cm90ZToNCj4gPiA+IE9uIFRodSwgSnVsIDE5 LCAyMDE4IGF0IDEyOjQ1IFBNLCBUcm9uZCBNeWtsZWJ1c3QNCj4gPiA+IDx0cm9uZG15QGhhbW1l cnNwYWNlLmNvbT4gd3JvdGU6DQo+ID4gPiA+IA0KPiA+ID4gPiBPbiBUaHUsIDIwMTgtMDctMTkg YXQgMTc6NDIgKzAwMDAsIFNhcmd1biBEaGlsbG9uIHdyb3RlOg0KPiA+ID4gPiA+IFRoaXMgYWRk cyB0aGUgYWJpbGl0eSB0byBwYXNz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