HomeFreeBSD

mtx: switch to fcmpset

Description

mtx: switch to fcmpset

The found value is passed to locking routines in order to reduce cacheline
accesses.

mtx_unlock grows an explicit check for regular unlock. On ll/sc architectures
the routine can fail even if the lock could have been handled by the inline
primitive.

Discussed with: jhb
Tested by: pho (previous version)

Details

Provenance
mjgAuthored on
Parents
rS313268: vfs: use atomic_fcmpset in vfs_refcount_*
Branches
Unknown
Tags
Unknown