--- linux/fs/nfs/dir.c_1.32 Wed Feb 4 17:57:23 2004 +++ linux/fs/nfs/dir.c Wed Feb 4 17:52:20 2004 @@ -551,6 +551,11 @@ static int nfs_dentry_delete(struct dent /* Unhash it, so that ->d_iput() would be called */ return 1; } + if (!(dentry->d_sb->s_flags & MS_ACTIVE)) { + /* Unhash it, so that ancestors of killed async unlink + * files will be cleaned up during umount */ + return 1; + } return 0; }