freebsd-dev/sys/fs/unionfs
Jason A. Harmening 356e698011 unionfs(): destroy root vnode if upper registration fails
If unionfs_domount() fails, the mount path will not call VFS_UNMOUNT()
to clean up after it.  If this failure happens during upper vnode
registration, the unionfs root vnode will already be allocated.
vflush() it in order to prevent the vnode from being leaked and the
subsequent vfs_mount_destroy() call from getting stuck waiting for
the mountpoint reference count to drain.

Reviewed by:	kib, markj
Tested by:	pho
Differential Revision: https://reviews.freebsd.org/D39767
2023-05-07 18:30:43 -05:00
..
union_subr.c unionfs: fixes to unionfs_nodeget() error handling 2023-05-07 18:30:43 -05:00
union_vfsops.c unionfs(): destroy root vnode if upper registration fails 2023-05-07 18:30:43 -05:00
union_vnops.c unionfs_mkdir(): handle dvp reclamation 2023-04-17 20:31:40 -05:00
union.h Remove unnecessary thread argument from unionfs_nodeget() and _noderem() 2021-12-07 16:20:02 -08:00