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)
Tue, Jan 21, 2:00 PM
Unknown Object (File)
Sun, Jan 19, 4:12 AM
Unknown Object (File)
Sat, Jan 11, 7:49 AM
Unknown Object (File)
Dec 12 2024, 6:26 PM
Unknown Object (File)
Dec 3 2024, 9:06 PM
Unknown Object (File)
Dec 3 2024, 1:12 PM
Unknown Object (File)
Nov 27 2024, 4:41 AM
Unknown Object (File)
Nov 27 2024, 2:50 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.