Return-Path: Received: from fieldses.org ([174.143.236.118]:57996 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479Ab1ETTcP (ORCPT ); Fri, 20 May 2011 15:32:15 -0400 Date: Fri, 20 May 2011 15:32:12 -0400 From: "Dr. J. Bruce Fields" To: Trond Myklebust Cc: Harry Edmon , Chuck Lever , linux-nfs@vger.kernel.org Subject: Re: 2.6.38.6 - state manager constantly respawns Message-ID: <20110520193212.GA12496@fieldses.org> References: <4DD17F79.305@uw.edu> <1305575656.19725.9.camel@lade.trondhjem.org> <20110516202059.GC1680@fieldses.org> <20110516205351.GD1680@fieldses.org> <4DD694DF.2060302@uw.edu> <20110520172639.GA11670@fieldses.org> <1305913963.12712.6.camel@lade.trondhjem.org> <1305916616.14253.1.camel@lade.trondhjem.org> <20110520185935.GC11670@fieldses.org> <1305918933.14253.5.camel@lade.trondhjem.org> Content-Type: text/plain; charset=us-ascii In-Reply-To: <1305918933.14253.5.camel@lade.trondhjem.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Fri, May 20, 2011 at 03:15:33PM -0400, Trond Myklebust wrote: > On Fri, 2011-05-20 at 14:59 -0400, Dr. J. Bruce Fields wrote: > > > Bruce, > > > > > > If the clientid expired, is it possible that the server may have handed > > > out the same numerical short clientid to someone else and that explains > > > why the RENEW is succeeding? > > > > Clientid's are created from a u32 counter that's sampled only under the > > state lock, so it sounds unlikely. > > > > I think more likely would be some bug affecting the lifetime of a > > stateid--e.g. if the server destroyed a lock stateid earlier than it > > should in some case, then this would happen. (Since, as I say, we > > assume EXPIRED for any stateid we don't recognize.) > > Shouldn't that be a NFS4ERR_BAD_STATEID instead of NFS4ERR_EXPIRED? Probably so, but absent a bug on either side I can't see a case where it would make a difference; can you? --b. > The > latter should really be reserved for the case where you know that this > stateid came from an expired lease.