Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:13579 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753330Ab2ILUyP (ORCPT ); Wed, 12 Sep 2012 16:54:15 -0400 From: "Myklebust, Trond" To: Simon Kirby CC: Yan-Pai Chen , "linux-nfs@vger.kernel.org" Subject: Re: [3.2.5] NFSv3 CLOSE_WAIT hang Date: Wed, 12 Sep 2012 20:54:14 +0000 Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA908F9F734@SACEXCMBX04-PRD.hq.netapp.com> References: <4FA345DA4F4AE44899BD2B03EEEC2FA908F86381@SACEXCMBX04-PRD.hq.netapp.com> <6cb9.5049fd40.b47c1@altium.nl> <6cb9.5049fd40.b47c1@altium.nl> <4FA345DA4F4AE44899BD2B03EEEC2FA908F8E302@SACEXCMBX04-PRD.hq.netapp.com> <447c.504a05c9.dd0a9@altium.nl> <447c.504a05c9.dd0a9@altium.nl> <4FA345DA4F4AE44899BD2B03EEEC2FA908F8E833@SACEXCMBX04-PRD.hq.netapp.com> <74c7.504b9d45.a5956@altium.nl> <20120911194051.GB11160@hostway.ca> <1347401844.15208.17.camel@lade.trondhjem.org> In-Reply-To: <1347401844.15208.17.camel@lade.trondhjem.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVHVlLCAyMDEyLTA5LTExIGF0IDE4OjE3IC0wNDAwLCBUcm9uZCBNeWtsZWJ1c3Qgd3JvdGU6 DQo+IE9uIFR1ZSwgMjAxMi0wOS0xMSBhdCAxMjo0MCAtMDcwMCwgU2ltb24gS2lyYnkgd3JvdGU6 DQo+ID4gSGVsbG8hDQo+ID4gDQo+ID4gVGhpcyBwcm9ibGVtIHN0aWxsIGJpdGVzIHVzIHJhcmVs eSwgYW5kIHdlJ3ZlIGJlZW4gdXNpbmcgVENQIE5GUyBmb3Igc29tZQ0KPiA+IH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