HomeFreeBSD

vfs: trylock in vfs_msync and refactor the func

Description

vfs: trylock in vfs_msync and refactor the func

  • use LK_NOWAIT instead of calling VOP_ISLOCKED before deciding to lock
  • evaluate flags before looping over vnodes

Reviewed by: kib
Tested by: pho (in a larger patch, previous version)
Differential Revision: https://reviews.freebsd.org/D23035

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D23035: 1/7 vfs: trylock in vfs_msync and refactor the func
Parents
rS356439: vfs: use a dedicated counter for free vnode recycling
Branches
Unknown
Tags
Unknown