The v_mountedhere field is protected by the vnode lock, not vnode's internal

lock.

Approved by:	re (rwatson)
This commit is contained in:
Pawel Jakub Dawidek 2007-07-26 16:52:57 +00:00
parent de016534a8
commit 68c1a246ae

View File

@ -1499,8 +1499,8 @@ devfs_fixup(struct thread *td)
VFS_ROOT(mp, LK_EXCLUSIVE, &dvp, td);
VI_LOCK(dvp);
dvp->v_iflag &= ~VI_MOUNT;
dvp->v_mountedhere = NULL;
VI_UNLOCK(dvp);
dvp->v_mountedhere = NULL;
/* Set up the real rootvnode, and purge the cache */
TAILQ_FIRST(&mountlist)->mnt_vnodecovered = NULL;