HomeFreeBSD

zfsctl_freebsd_root_lookup: gfs_vop_lookup may return a doomed vnode

Description

zfsctl_freebsd_root_lookup: gfs_vop_lookup may return a doomed vnode

gfs code is (almsot) completely agnostic of FreeBSD VFS locking, so it
does not handle doomed but not yet dead vnodes and may return them.
Check for those vnodes here and retry a lookup.
Note that ZFS and gfs have additional protections that ensure that a
parent vnode of the current vnode is never doomed.

The fixed problem is an occasional failure to lookup a 'snapshot' or
'shares' directories under .zfs.

Note that for the above reason all uses of zfsctl_root_lookup() are
better be replaced with VOP_LOOKUP.

MFC after: 5 weeks

Details

Provenance
avgAuthored on
Parents
rS300129: hyperv/vmbus: Use consistent device description as other devices
Branches
Unknown
Tags
Unknown