HomeFreeBSD

lockf: free state only when recycling the vnode

Description

lockf: free state only when recycling the vnode

This avoids malloc/free cycles when locking/unlocking the vnode when
nobody is contending.

Tested by: pho

Details

Provenance
mjgAuthored on
Parents
rS332877: Correct size for allocation and bzero of fdsr.
Branches
Unknown
Tags
Unknown