HomeFreeBSD

unionfs: do not create a new status object during vop_close()

Description

unionfs: do not create a new status object during vop_close()

Split the portion of unionfs_get_node_status() that searches for an
existing status object into a new helper function,
unionfs_find_node_status(), and use that in unionfs_close().

Additionally, modify unionfs_close() to accept a NULL status object
if unionfs_find_node_status() does not find a matching status
object. This can happen due to the unconditional VOP_CLOSE()
operation issued by vgonel().

Differential Revision: https://reviews.freebsd.org/D45398
Reviewed by: olce
Tested by: pho

Details

Provenance
jahAuthored on Jun 14 2024, 9:01 PM
Reviewer
olce
Differential Revision
D45398: unionfs: rework locking scheme to only lock a single vnode
Parents
rGeb60ff1ee16a: unionfs: rework locking scheme to only lock a single vnode
Branches
Unknown
Tags
Unknown