Commit ea3d5d12 authored by Linus Torvalds's avatar Linus Torvalds

d_validate() needs to use "__dget_locked()" since it's holding the

dcache lock.

Found by Maneesh Soni <maneesh@in.ibm.com>
parent ecccde0f
...@@ -1056,7 +1056,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent) ...@@ -1056,7 +1056,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent)
* as it is parsed under dcache_lock * as it is parsed under dcache_lock
*/ */
if (dentry == list_entry(lhp, struct dentry, d_hash)) { if (dentry == list_entry(lhp, struct dentry, d_hash)) {
dget(dentry); __dget_locked(dentry);
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
return 1; return 1;
} }
......
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