diff options
author | pjd <pjd@FreeBSD.org> | 2007-07-26 16:52:57 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-07-26 16:52:57 +0000 |
commit | 8dc8d42bdcbcf383b19e382acdec9adc0bd70d90 (patch) | |
tree | 802bd049a680505d152a51f8ebc9a96f579bcff1 | |
parent | 2bcc29a2ea4e132893d0f89e76a8f635055dbb5e (diff) | |
download | FreeBSD-src-8dc8d42bdcbcf383b19e382acdec9adc0bd70d90.zip FreeBSD-src-8dc8d42bdcbcf383b19e382acdec9adc0bd70d90.tar.gz |
The v_mountedhere field is protected by the vnode lock, not vnode's internal
lock.
Approved by: re (rwatson)
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 82bb767..3ae0d1a 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -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; |