HomeFreeBSD

Remove unionfs_islocked()

Description

Remove unionfs_islocked()

The implementation is racy; if the unionfs vnode is not in fact
locked, vnode private data may be concurrently altered or freed.
Instead, simply rely upon the standard implementation to query the
v_vnlock field, which is type-stable and will reflect the correct
lower/upper vnode configuration for the unionfs node.

Tested by: pho
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D39272

Details

Provenance
jahAuthored on Jan 16 2023, 9:50 PM
Reviewer
kib
Differential Revision
D39272: unionfs: remove LK_UPGRADE if falling back to the standard lock
Parents
rGa5d82b55fe76: Remove an impossible condition from unionfs_lock()
Branches
Unknown
Tags
Unknown