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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user