[PVFS-users] IS_DEADDIR and pvfs_revalidate_inode

Rob Ross rross@mcs.anl.gov
Thu, 15 Jan 2004 11:34:50 -0600 (CST)


Christoph,

That condition can occur when a directory is deleted but files in the 
directory are still open.

We were also seeing this happen in cases that we didn't expect, thus the 
error message.

What type of access patterns are causing this for you?

Thanks,

Rob

On Tue, 13 Jan 2004, Christoph Biardzki wrote:

> Hello,
> I'm still looking into some trouble with metadata operations and the message
> 
> (dir.c, 651): DEAD directory detected going into pvfs_revalidate_inode.
> (dir.c, 651): DEAD directory detected going into pvfs_revalidate_inode.
> (dir.c, 651): DEAD directory detected going into pvfs_revalidate_inode.
> (dir.c, 651): DEAD directory detected going into pvfs_revalidate_inode.
> 
> 
> appearing on the PVFS clients during heavy metadata traffic.
> 
> In dir.c there is a corresponding line of code which uses the kernel 
> macro IS_DEADDIR to find out whether the directory entry has been 
> deleted. Could someone explain how error handling in this case works? 
> Does processing simply continue after the PERROR and why?
> 
> Regards,
> 
>   Christoph
> 
> #ifdef IS_DEADDIR
>          if(IS_DEADDIR(dentry->d_inode))
>          {
>                  PERROR("DEAD directory detected going into 
> pvfs_revalidate_inode.\n");
>          }
> #endif