[Ocfs2-devel] [PATCH 1/1] OCFS2: fix for nfs getting stale inode.

wengang wang wen.gang.wang at oracle.com
Thu Oct 23 02:22:26 PDT 2008



Joel Becker wrote:
> On Thu, Oct 23, 2008 at 04:33:32PM +0800, wengang wang wrote:
>   
>> Joel Becker wrote:
>>     
>>> 	What's the problem other than ESTALE?  That's perfectly valid in
>>> the world of NFS.
>>>
>>>   
>>>       
>> ESTALE is not a big problem, what is important is that:
>> it cause kernel panic during ocfs2_meta_lock_update() at later 
>> operations when it updates metadata from disk.
>>     
>
> 	This is the bug.  Why is a stale inode getting meta_lock called
> against it?  That's what we should be preventing, no?
>
>   
for the time, system doesn't know whether it's stale yet.
the fix just makes the inode to be stale(OCFS2_INODE_DELETE), or make 
sure there is no such a
stale inode in memory when it's stale(deleted or a new different inode 
occupies the same block).



More information about the Ocfs2-devel mailing list