]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r323578,r323769: dounmount: do not release the mount point's reference
authoravg <avg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Oct 2017 07:16:31 +0000 (07:16 +0000)
committeravg <avg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Oct 2017 07:16:31 +0000 (07:16 +0000)
commit53e98d811c022d3d0b70907ecf82598d7c83c426
treebe0f627d2d9e6fa914af5fe1b80157ebc87dc9de
parentb05d30c0b52f15a4cd7f1304774d00c40e52af33
MFC r323578,r323769: dounmount: do not release the mount point's reference
on the covered vnode

As long as mnt_ref is not zero there can be a consumer that might try
to access mnt_vnodecovered.  For this reason the covered vnode must not
be freed until mnt_ref goes to zero.
So, move the release of the covered vnode to vfs_mount_destroy.

git-svn-id: svn://svn.freebsd.org/base/stable/10@324295 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
sys/kern/vfs_mount.c