commit bce220b964a686496397a92634405dc027ede02c
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Tue May 29 21:47:53 2007 -0400

    lock odf inode when calling the odf fs's get_parent

diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c
index 
1c27ba6e070d081571d34bd760fe2a1b192274c4..403240ea7d234914aed81aa24007f029d7244800
 100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -137,7 +137,9 @@ static struct dentry *unionfs_get_parent
                goto out;
        }
 
+       mutex_lock(&odf_child->d_inode->i_mutex);
        odf_parent = odf_sb->s_export_op->get_parent(odf_child);
+       mutex_unlock(&odf_child->d_inode->i_mutex);
        if (IS_ERR(odf_parent)) {
                dput(odf_child);
                res = odf_parent;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to