projects
/
unionfs-2.6.22.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76b4413
)
Unionfs: follow_link locking fixes
author
Erez Zadok
<ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:25:11 +0000
(21:25 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:49:27 +0000
(23:49 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/inode.c
b/fs/unionfs/inode.c
index bd19f93478495054be2a202bf3d7866b631e07bf..1798f272a02acfa2b9374bf9c4a0f999071ec54f 100644
(file)
--- a/
fs/unionfs/inode.c
+++ b/
fs/unionfs/inode.c
@@
-812,7
+812,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);
+ }
return ERR_PTR(err);
}