Return-Path: Received: from mx141.netapp.com ([216.240.21.12]:54990 "EHLO mx141.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbeHOSLt (ORCPT ); Wed, 15 Aug 2018 14:11:49 -0400 From: "Schumaker, Anna" To: "trondmy@gmail.com" CC: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH] pNFS: When updating the stateid in layoutreturn, also update the recall range Date: Wed, 15 Aug 2018 15:19:11 +0000 Message-ID: <70c1e06838b2f5bfcfddf1e427aa3f5ee11e8b16.camel@netapp.com> References: <20180814104759.20556-1-trond.myklebust@hammerspace.com> In-Reply-To: <20180814104759.20556-1-trond.myklebust@hammerspace.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: SGkgVHJvbmQsDQoNCk9uIFR1ZSwgMjAxOC0wOC0xNCBhdCAwNjo0NyAtMDQwMCwgVHJvbmQgTXlr bGVidXN0IHdyb3RlOg0KPiBXaGVuIHdlIHVwZGF0ZSB0aGUgbGF5b3V0IHN0YXRlaWQgaW4NCj4g bmZzNF9sYXlvdXRyZXR1cm5fcmVmcmVzaF9zdGF0ZWlkLCB3ZQ0KPiBzaG91bGQgYWxzbyB1cGRh dGUgdGhlIHJhbmdlIGluIG9yZGVyIHRvIGxldCB0aGUgc2VydmVyIGtub3cgd2UncmUNCj4gYWN0 dWFsbHkNCj4gcmV0dXJuaW5nIGV2ZXJ5dGhpbmcuDQo+IA0KPiBGaXhlczogMTZjMjc4ZGJmYTYz ICgicG5mczogRml4IGhhbmRsaW5nIG9mIE5GUzRFUlJfT0xEX1NUQVRFSUQNCj4gcmVwbGllcy4u LiIpDQo+IFNpZ25lZC1vZmYtYnk6IFRyb25kIE15a2xlYnVzdCA8dHJvbmQubXlrbGVidXN0QGhh bW1lcnNwYWNlLmNvbT4NCj4gLS0tDQo+ICBmcy9uZnMvbmZzNHByb2MuYyB8IDMgKysrDQo+ICBm cy9uZnMvcG5mcy5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