commit 66ae7851f3efc8a8ef04143a929b300614fee3cf
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date:   Fri Feb 29 12:01:57 2008 -0500

    Unionfs: follow_link locking fixes
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index 06eb842..c456f30 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -717,7 +717,11 @@ static void *unionfs_follow_link(struct dentry *dentry, 
struct nameidata *nd)
        err = 0;
 
 out:
-       unionfs_check_dentry(dentry);
+       if (!err) {
+               unionfs_lock_dentry(dentry, UNIONFS_DMUTEX_CHILD);
+               unionfs_check_dentry(dentry);
+               unionfs_unlock_dentry(dentry);
+       }
        unionfs_check_nd(nd);
        return ERR_PTR(err);
 }
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to