HomeFreeBSD

ufs: be more persistent with finishing some operations

Description

ufs: be more persistent with finishing some operations

when the vnode is doomed after relock. The mere fact that the vnode is
doomed does not prevent us from doing UFS operations on it while it is
still belongs to UFS, which is determined by non-NULL v_data. Not
finishing some operations, e.g. not syncing the inode block only because
the vnode started reclamation, is not correct.

Add macro IS_UFS() which incapsulates the v_data != NULL, and use it
instead of VN_IS_DOOMED() for places where the operation completion is
important.

Reviewed by: markj, mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34072

Details

Provenance
kibAuthored on Jan 18 2022, 1:49 AM
Reviewer
markj
Differential Revision
D34072: Useful changes taken from D33921
Parents
rG4559700a0a99: ffs_snapblkfree(): add a comment explaining lockmgr invocation
Branches
Unknown
Tags
Unknown