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.
Differential D23916
(lookup 7) vfs: add support for !LOCKLEAF to lockless lookup mjg on Mar 2 2020, 5:57 AM. Authored by Tags None Referenced Files
Subscribers
Details
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
Event Timeline |