HomeFreeBSD

Do not assume that we own the use reference on the covered vnode until

Description

Do not assume that we own the use reference on the covered vnode until
we set MNTK_UNMOUNT flag on the mp. Otherwise parallel unmount which
wins race with us could dereference the covered vnode, and we are
left with the locked freed memory.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS301928: Another follow-up to r291460. Only access vp->v_rdev for VCHR vnodes
Branches
Unknown
Tags
Unknown