freebsd-skq/sys/cddl/compat/opensolaris
Andriy Gapon cbc785c293 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.

Reviewed by:	kib
MFC after:	3 weeks
Differential Revision: https://reviews.freebsd.org/D12329
2017-09-14 08:47:06 +00:00
..
kern dounmount: do not release the mount point's reference on the covered vnode 2017-09-14 08:47:06 +00:00
rpc
sys Fix remounting ZFS filesystem with "zfs mount" 2017-09-05 19:40:04 +00:00