Removed holding the sMountOpMutex added by the last commit; although this

recreates a race condition, having it here breaks the kernel as fs_mount()
calls this function and already holds the mutex.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8936 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-09-14 15:46:02 +00:00
parent a3d34bb143
commit aad5dc5b3d
-2
View File
@@ -934,14 +934,12 @@ vnode_path_to_vnode(struct vnode *vnode, char *path, bool traverseLeafLink,
vnode = nextVnode;
// see if we hit a mount point
mutex_lock(&sMountOpMutex);
if (vnode->covered_by) {
nextVnode = vnode->covered_by;
inc_vnode_ref_count(nextVnode);
put_vnode(vnode);
vnode = nextVnode;
}
mutex_unlock(&sMountOpMutex);
}
*_vnode = vnode;