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
rS324294: Fix .gcda to .pico (bsd.lib.mk) and .o (bsd.prog.mk) dependency mapping
Branches
Unknown
Tags
Unknown