HomeFreeBSD

sx: check for SX_LOCK_SHARED | SX_LOCK_WRITE_SPINNER when exclusive-locking

Description

sx: check for SX_LOCK_SHARED | SX_LOCK_WRITE_SPINNER when exclusive-locking

First, this removes a spurious difference compared to rw locks.
More importantly though this avoids a trip through sleepq code if the lock
happens to be caught in this state.

Details

Provenance
mjgAuthored on
Parents
rS355415: nullfs: locklessly check for entries in null_hashget
Branches
Unknown
Tags
Unknown