freebsd-src/sys/contrib
Mateusz Guzik 829f0bcb5f vfs: add the concept of vnode state transitions
To quote from a comment above vput_final:
<quote>
* XXX Some filesystems pass in an exclusively locked vnode and strongly depend
* on the lock being held all the way until VOP_INACTIVE. This in particular
* happens with UFS which adds half-constructed vnodes to the hash, where they
* can be found by other code.
</quote>

As is there is no mechanism which allows filesystems to denote that a
vnode is fully initialized, consequently problems like the above are
only found the hard way(tm).

Add rudimentary support for state transitions, which in particular allow
to assert the vnode is not legally unlocked until its fate is decided
(either construction finishes or vgone is called to abort it).

The new field lands in a 1-byte hole, thus it does not grow the struct.

Bump __FreeBSD_version to 1400077

Reviewed by:	kib (previous version)
Tested by:	pho
Differential Revision:	https://reviews.freebsd.org/D37759
2022-12-26 17:35:12 +00:00
..
alpine-hal
ck
dev ath: Fix mismatches in array bounds. 2022-12-07 12:30:42 -08:00
device-tree Import device-tree files from Linux 6.0 2022-11-15 20:02:06 +01:00
dpdk_rte_lpm
edk2
ena-com
libb2
libfdt
libnv
libsodium
ncsw
ngatm
openzfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
pcg-c/include
rdma/krping
v4l
vchiq/interface vchiq: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
x86emu
xen
xz-embedded MFV: xz-embedded 3f438e15109229bb14ab45f285f4bff5412a9542 2022-11-17 22:04:57 -08:00
zlib zlib crc32: Add prototypes for recently-added static functions. 2022-09-28 14:00:27 -07:00
zstd