freebsd-src/sys/ufs
Konstantin Belousov 30bfb2fa0f ffs_vput_pair(): try harder to recover from the vnode reclaim
In particular, if unlock_vp is false, save vp's inode number and
generation. If ffs_inotovp() can re-create the vnode with the same
number and generation after we finished with handling dvp, then we most
likely raced with unmount, and were able to restore atomicity of open.
We use FFSV_REPLACE_DOOMED there, to drop the old vnode.

This additional recovery is not strictly required, but it improves the
quality of the implementation.

Suggested by:	mckusick
Reviewed by:	chs, mckusick
Tested by:	pho
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
2021-02-12 03:02:21 +02:00
..
ffs ffs_vput_pair(): try harder to recover from the vnode reclaim 2021-02-12 03:02:21 +02:00
ufs ufs_direnter/SU: unconditionally UFS_UPDATE inode when extending directory 2021-02-12 03:02:20 +02:00