Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:48096 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754332Ab2JWV6h (ORCPT ); Tue, 23 Oct 2012 17:58:37 -0400 From: "Myklebust, Trond" To: Chris Perl CC: "linux-nfs@vger.kernel.org" Subject: Re: RPC Race Condition Date: Tue, 23 Oct 2012 21:58:35 +0000 Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA90928DCDD@SACEXCMBX04-PRD.hq.netapp.com> References: <20121022180339.GC24763@nyc-qws-132.nyc.delacy.com> <4FA345DA4F4AE44899BD2B03EEEC2FA909289403@SACEXCMBX04-PRD.hq.netapp.com> <20121022202611.GA27191@nyc-qws-132.nyc.delacy.com> <4FA345DA4F4AE44899BD2B03EEEC2FA90928AB39@SACEXCMBX04-PRD.hq.netapp.com> <20121023134551.GB27191@nyc-qws-132.nyc.delacy.com> <4FA345DA4F4AE44899BD2B03EEEC2FA90928C74A@SACEXCMBX04-PRD.hq.netapp.com> <20121023200855.GC27191@nyc-qws-132.nyc.delacy.com> In-Reply-To: <20121023200855.GC27191@nyc-qws-132.nyc.delacy.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVHVlLCAyMDEyLTEwLTIzIGF0IDE2OjA4IC0wNDAwLCBDaHJpcyBQZXJsIHdyb3RlOg0KPiBP biBUdWUsIE9jdCAyMywgMjAxMiBhdCAwNDowMjoyN1BNICswMDAwLCBNeWtsZWJ1c3QsIFRyb25k IHdyb3RlOg0KPiA+IGNhbGxfdHJhbnNtaXQoKSBzaG91bGQgbm9ybWFsbHkganVzdCBjYXVzZSB0 aGUgcnBjX3Rhc2sgdG8gZGV0ZWN0IHRoYXQNCj4gPiB0aGUgY29ubmVjdGlvbiBpcyBkb3duLCBh bmQgc2hvdWxkIGNhdXNlIGl0IHRvIGdvIHRvIGNhbGxfY29ubmVj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