From: Trond Myklebust Subject: Re: [NFS] [PATCH 3/7] SUNRPC: Allow the client to detect if the TCP connection is closed Date: Fri, 09 Nov 2007 09:48:50 -0500 Message-ID: <1194619730.7459.48.camel@heimdal.trondhjem.org> References: <20071107003834.13713.73536.stgit@heimdal.trondhjem.org> <20071107003950.13713.24126.stgit@heimdal.trondhjem.org> <1194618806.7459.44.camel@heimdal.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net, Chuck Lever , nfsv4@linux-nfs.org To: "Talpey, Thomas" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfsv4-bounces@linux-nfs.org Errors-To: nfsv4-bounces@linux-nfs.org List-ID: On Fri, 2007-11-09 at 09:35 -0500, Talpey, Thomas wrote: > I guess I return to my question - why not just set the XPRT bits when > we decided to close? Why wait for TCP to click through to this state? > It doesn't guarantee anything on the server until we see an ACK. We could do that, but IMO it is cleaner to keep all of this state-dependent code in one place. The state change occurs while we're inside the call to ->shutdown(), so there is no delay. Cheers Trond