HomeFreeBSD

nullfs: provide custom null_advlock bypass

Description

nullfs: provide custom null_advlock bypass

The advlock VOP takes the vnode unlocked, which makes the normal bypass
function racy. Same as null_pgcache_read(), nullfs implementation needs
to take interlock and reference lower vnode under it.

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 17 2021, 10:56 PM
Reviewer
markj
Differential Revision
D31310: Several fixes for nullfs and fifofs
Parents
rG7b7227c4a601: null_bypass(): some style
Branches
Unknown
Tags
Unknown