Page MenuHomeFreeBSD

1/7 vfs: trylock in vfs_msync and refactor the func
ClosedPublic

Authored by mjg on Jan 5 2020, 1:17 AM.

Details

Summary
  • stop evaluating flags every single time
  • LK_NOWAIT instead of calling VOP_ISLOCKED as suggested by kib in D22995
  • this drop LK_RETRY

This does not have to be a separate change but I think it is a logical step and makes sense for it to go in separately, if only for bisectability.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mjg created this revision.Jan 5 2020, 1:17 AM
kib accepted this revision.Jan 5 2020, 2:05 AM
This revision is now accepted and ready to land.Jan 5 2020, 2:05 AM
mjg retitled this revision from vfs: trylock in vfs_msync and refactor the func to 1/7 vfs: trylock in vfs_msync and refactor the func.
This revision was automatically updated to reflect the committed changes.