HomeFreeBSD

locks: fix recursion support after recent changes

Description

locks: fix recursion support after recent changes

When a relevant lockstat probe is enabled the fallback primitive is called with
a constant signifying a free lock. This works fine for typical cases but breaks
with recursion, since it checks if the passed value is that of the executing
thread.

Read the value if necessary.

Details

Provenance
mjgAuthored on
Parents
rS313334: Removed tests from the exclude list after problems were fixed.
Branches
Unknown
Tags
Unknown