HomeFreeBSD

mtx: unlock before traversing threads to wake up

Description

mtx: unlock before traversing threads to wake up

This shortens the lock hold time while not affecting corretness.
All the woken up threads end up competing can lose the race against
a completely unrelated thread getting the lock anyway.

Details

Provenance
mjgAuthored on
Parents
rS325919: locks: pull up PMC_SOFT_CALLs out of slow path loops
Branches
Unknown
Tags
Unknown