HomeFreeBSD

locks: make trylock routines check for 'unowned' value

Description

locks: make trylock routines check for 'unowned' value

Since fcmpset can fail without lock contention e.g. on arm, it was possible
to get spurious failures when the caller was expecting the primitive to succeed.

Reported by: mmel

Details

Provenance
mjgAuthored on
Parents
rS313943: Make mdconfig(8) not segfault when the kernel returns garbage data.
Branches
Unknown
Tags
Unknown