From aad5dc5b3d221a972b7ba04b8fdb6d69ab0d5017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 14 Sep 2004 15:46:02 +0000 Subject: [PATCH] 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 --- src/kernel/core/fs/vfs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kernel/core/fs/vfs.cpp b/src/kernel/core/fs/vfs.cpp index 7f18dfcc88..acbcf00c08 100755 --- a/src/kernel/core/fs/vfs.cpp +++ b/src/kernel/core/fs/vfs.cpp @@ -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;