Page MenuHomeFreeBSD

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

Authored by mjg on Jan 5 2020, 1:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 2:18 PM
Unknown Object (File)
Thu, Nov 21, 11:49 AM
Unknown Object (File)
Sun, Nov 17, 4:05 PM
Unknown Object (File)
Sun, Nov 17, 6:24 AM
Unknown Object (File)
Sun, Nov 17, 12:50 AM
Unknown Object (File)
Tue, Nov 12, 11:49 AM
Unknown Object (File)
Mon, Nov 11, 1:59 PM
Unknown Object (File)
Mon, Nov 11, 6:05 AM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.