HomeFreeBSD

locks: tidy up unlock fallback paths

Description

locks: tidy up unlock fallback paths

Update comments to note these functions are reachable if lockstat is
enabled.

Check if the lock has any bits set before attempting unlock, which saves
an unnecessary atomic operation.

Details

Provenance
mjgAuthored on
Parents
rS313466: Branch ^/stable/10 to ^/projects/stable-10-backport-test-changes
Branches
Unknown
Tags
Unknown