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)
Sun, Jul 26, 8:14 PM
Unknown Object (File)
Fri, Jul 24, 4:18 PM
Unknown Object (File)
Tue, Jul 21, 8:46 PM
Unknown Object (File)
Tue, Jul 14, 1:17 AM
Unknown Object (File)
Tue, Jul 7, 3:48 PM
Unknown Object (File)
Sat, Jul 4, 9:09 AM
Unknown Object (File)
Jul 3 2026, 7:13 AM
Unknown Object (File)
Jul 2 2026, 9:58 PM
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.