HomeFreeBSD

rmlock(9) two additions and one change/fix:
rS212112Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

rmlock(9) two additions and one change/fix:

  • add rm_try_rlock().
  • add RM_SLEEPABLE to use sx(9) as the back-end lock in order to sleep while holding the write lock.
  • change rm_noreadtoken to a cpu bitmask to indicate which CPUs need to go through the lock/unlock in order to synchronize. As a side effect, this also avoids IPI to CPUs without any readers during rm_wlock.

Discussed with: ups@, rwatson@ on arch@
Sponsored by: Isilon Systems, Inc.

Details

Provenance
mlaierAuthored on
Parents
rS212111: MFC r210736: sh: Do not enter consecutive duplicates into the history.
Branches
Unknown
Tags
Unknown