commit 72e802dbbaa10242f318faa5ce04ad7d3bb48716
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date:   Sun May 18 03:35:49 2008 -0400

    Unionfs ODF: Move around locking order in unionfs_dir_llseek
    
    Signed-off-by: Rachita Kothiyal <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index 3926972..8e578af 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -146,12 +146,12 @@ static loff_t unionfs_dir_llseek(struct file *file, 
loff_t offset, int origin)
        unionfs_lock_dentry(dentry, UNIONFS_DMUTEX_CHILD);
 
        err = unionfs_file_revalidate(file, false);
+       unionfs_unlock_dentry(dentry);
        if (unlikely(err))
                goto out;
 
        err = generic_file_llseek(file, offset, origin);
 out:
-       unionfs_unlock_dentry(dentry);
        unionfs_read_unlock(dentry->d_sb);
        return 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