HomeFreeBSD

vfs: protect vnodes with smr

Description

vfs: protect vnodes with smr

vget_prep_smr and vhold_smr can be used to ref a vnode while within vfs_smr
section, allowing consumers to get away without locking.

See vhold_smr and vdropl for comments explaining caveats.

Reviewed by: kib
Testec by: pho
Differential Revision: https://reviews.freebsd.org/D23913

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D23913: vfs: introduce basic smr-protected path lookup
Parents
rS362826: Thanks to Ben Kaduk's comments, I looked and the 6 minute timeout was
Branches
Unknown
Tags
Unknown