The v_mountedhere field is protected by the vnode lock, not vnode's internal
lock. Approved by: re (rwatson)
This commit is contained in:
parent
de016534a8
commit
68c1a246ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user