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
F133347463: D23035.id.diff
Sat, Oct 25, 2:33 AM
Unknown Object (File)
Tue, Oct 21, 6:55 PM
Unknown Object (File)
Mon, Oct 20, 11:21 AM
Unknown Object (File)
Mon, Oct 20, 3:21 AM
Unknown Object (File)
Fri, Oct 17, 5:20 PM
Unknown Object (File)
Fri, Oct 17, 5:20 PM
Unknown Object (File)
Fri, Oct 17, 5:19 PM
Unknown Object (File)
Fri, Oct 17, 8:43 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.