HomeFreeBSD

MFC r323578,r323769: dounmount: do not release the mount point's reference

Description

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.

Details

Provenance
avgAuthored on
Parents
rS324292: really unbreak kernel builds on sparc64 and powerpc64 after r324163, ZFS…
Branches
Unknown
Tags
Unknown