Re: [PATCH 0/3] enhanced ESTALE error handling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chuck Lever
Date: Friday, January 18, 2008 - 10:17 am

On Jan 18, 2008, at 11:55 AM, Peter Staubach wrote:

If an ESTALE occurs during the second resolution attempt, we should  
give up.  When I addressed this issue two years ago, the two-try  
logic was the only acceptable solution because there's no way to  
guarantee the pathname resolution will ever finish unless we put a  
hard limit on it.


Which is a server bug, AFAICS.  It's simply impossible to close all  
the windows that result from sloppy file time stamps without  
completely disabling client-side caching.  The NFS protocol relies on  
file time stamps to manage cache coherence.  If the server is lying  
about time stamps, there's no way the client can cache coherently.


A use case or two would be useful to explore (on linux-nfs or linux- 
fsdevel, rather than lkml).


If the final operation fails after a pathname resolution, then it's a  
real error.  Is there a fixed and valid recovery script for the  
client in this case that will allow the mkdir to proceed?

Admittedly, the NFS client could recover more cleanly from some of  
these problems, but given the architecture of the Linux VFS, it will  
be difficult to address some of the corner cases.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/3] enhanced ESTALE error handling, J. Bruce Fields, (Fri Jan 18, 8:46 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Chuck Lever, (Fri Jan 18, 9:41 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Chuck Lever, (Fri Jan 18, 10:17 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Chuck Lever, (Fri Jan 18, 10:52 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Peter Staubach, (Fri Jan 18, 11:12 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Chuck Lever, (Fri Jan 18, 11:17 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, J. Bruce Fields, (Fri Jan 18, 11:37 am)
Re: [PATCH 0/3] enhanced ESTALE error handling, Peter Staubach, (Fri Jan 18, 12:12 pm)
[PATCH 0/3] enhanced ESTALE error handling (v2), Peter Staubach, (Fri Feb 1, 1:57 pm)
[PATCH 0/3] enhanced ESTALE error handling (v3), Peter Staubach, (Mon Mar 10, 1:23 pm)
Re: [PATCH 0/3] enhanced ESTALE error handling (v3), Andreas Dilger, (Mon Mar 10, 3:42 pm)