Page MenuHomeFreeBSD

(lookup 7) vfs: add support for !LOCKLEAF to lockless lookup
ClosedPublic

Authored by mjg on Mar 2 2020, 5:57 AM.

Details

Summary

Regular lookup always locks vnodes, which means if LOCKLEAF is not specified it has to unlock.

Since fast path does not lock upfront we can just check what needs to be done. New vget variant is introduced to elide locking.

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 edited the summary of this revision. (Show Details)
  • rebase
mjg retitled this revision from vfs: add support for !LOCKLEAF to fast path lookup to (lookup 7) vfs: add support for !LOCKLEAF to lockless lookup.
mjg added a reviewer: markj.
  • rebase
This revision was not accepted when it landed; it landed in state Needs Review.Jul 25 2020, 10:41 AM
This revision was automatically updated to reflect the committed changes.