HomeFreeBSD

vn_lock_pair(): reasonably handle vp1 == vp2 case

Description

vn_lock_pair(): reasonably handle vp1 == vp2 case

Lock the vnode in the most exclusive lock mode requested, once.
All callers already ensure that vp1 != vp2 or are careful enough to only
unlock once otherwise.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42642

Details

Provenance
kibAuthored on Nov 16 2023, 10:42 PM
Reviewer
markj
Differential Revision
D42642: vn_lock_pair(): reasonably handle vp1 == vp2 case
Parents
rGe256f71389fb: kernel: add missed FEATUREs compat_freebsd 8-14
Branches
Unknown
Tags
Unknown