Commit 95eabe6d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] namei.c_path_lookup takes lock unnecessarily

From:  Marcus Alanen <maalanen@ra.abo.fi>
parent 90804bd5
......@@ -863,9 +863,9 @@ int path_lookup(const char *name, unsigned int flags, struct nameidata *nd)
read_unlock(&current->fs->lock);
if (__emul_lookup_dentry(name,nd))
return 0;
read_lock(&current->fs->lock);
} else {
read_unlock(&current->fs->lock);
}
read_unlock(&current->fs->lock);
spin_lock(&dcache_lock);
nd->mnt = current->fs->rootmnt;
nd->dentry = current->fs->root;
......
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