Commit 168e5083 authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Linus Torvalds

[PATCH] use ->d_lock instead of dcache_lock in vfat_revalidate (2/6)

This uses more fine granularity ->d_lock than ->dcache_lock for
->d_parent with d_move() race.
parent f76e3f49
...@@ -82,10 +82,10 @@ static int vfat_revalidate(struct dentry *dentry, struct nameidata *nd) ...@@ -82,10 +82,10 @@ static int vfat_revalidate(struct dentry *dentry, struct nameidata *nd)
*/ */
ret = 0; ret = 0;
else { else {
spin_lock(&dcache_lock); spin_lock(&dentry->d_lock);
if (dentry->d_time != dentry->d_parent->d_inode->i_version) if (dentry->d_time != dentry->d_parent->d_inode->i_version)
ret = 0; ret = 0;
spin_unlock(&dcache_lock); spin_unlock(&dentry->d_lock);
} }
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment