HomeFreeBSD

null_lookup: restore dvp lock always, not only on success

Description

null_lookup: restore dvp lock always, not only on success

Caller of VOP_LOOKUP() passes dvp locked and expect it locked on return.
Relock of lower vnode in any case could leave upper vnode reclaimed and
unlocked.

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31310

Details

Provenance
kibAuthored on Jul 21 2021, 1:19 PM
Reviewer
markj
Differential Revision
D31310: Several fixes for nullfs and fifofs
Parents
rGd5b078163e0d: null_bypass(): prevent loosing the only reference to the lower vnode
Branches
Unknown
Tags
Unknown