Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([216.205.24.194]:47245 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbcEPVmo (ORCPT ); Mon, 16 May 2016 17:42:44 -0400 From: Trond Myklebust To: Anna Schumaker CC: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH 2/4] NFSv4: Label stateids with the type Date: Mon, 16 May 2016 21:42:39 +0000 Message-ID: <8E6667C1-9014-43E9-9E01-BCA0562C1A68@primarydata.com> References: <1463424447-57302-1-git-send-email-trond.myklebust@primarydata.com> <1463424447-57302-2-git-send-email-trond.myklebust@primarydata.com> <07c85b1d-fa94-90aa-b44e-ca465562bf4e@Netapp.com> In-Reply-To: <07c85b1d-fa94-90aa-b44e-ca465562bf4e@Netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: DQoNCk9uIDUvMTYvMTYsIDE2OjU1LCAiQW5uYSBTY2h1bWFrZXIiIDxBbm5hLlNjaHVtYWtlckBu ZXRhcHAuY29tPiB3cm90ZToNCg0KPkhpIFRyb25kLA0KPg0KPk9uIDA1LzE2LzIwMTYgMDI6NDcg UE0sIFRyb25kIE15a2xlYnVzdCB3cm90ZToNCj4+IEluIG9yZGVyIHRvIG1vcmUgZWFzaWx5IGRp c3Rpbmd1aXNoIHdoYXQga2luZCBvZiBzdGF0ZWlkIHdlIGFyZSBkZWFsaW5nDQo+PiB3aXRoLCBp bnRyb2R1Y2UgYSB0eXBlIHRoYXQgY2FuIGJlIHVzZWQgdG8gbGFiZWwgdGhlIHN0YXRlaWQgc3Ry dWN0dXJlLg0KPj4gDQo+PiBUaGUgbGFiZWwgd2lsbCBiZSB1c2VmdWwgYm90aCBmb3IgZGVidWdn aW5nLCBidXQgYWxzbyB3aGVuIGRlYWxpbmcgd2l0aA0KPj4gb3BlcmF0aW9ucyBsaWtlIFNFVEFU VFIsIFJFQUQgYW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