Page MenuHomeFreeBSD

rwlock(9): Add shared priority propagation mode
AbandonedPublic

Authored by cem on Mar 26 2016, 1:43 AM.
Tags
None
Referenced Files
F167226975: D5745.diff
Thu, Aug 20, 3:12 AM
Unknown Object (File)
Mon, Aug 17, 2:15 AM
Unknown Object (File)
Mon, Jul 27, 4:04 PM
Unknown Object (File)
Sat, Jul 25, 5:35 PM
Unknown Object (File)
Jul 14 2026, 10:25 PM
Unknown Object (File)
Apr 20 2026, 5:05 PM
Unknown Object (File)
Apr 20 2026, 5:05 PM
Unknown Object (File)
Apr 19 2026, 4:31 PM
Subscribers

Details

Reviewers
kib
markj
jhb
Group Reviewers
manpages
Summary

Add shared priority propagation as an optional rwlock mode (default off).

All rwlocks are bloated by a pointer (32 -> 40 bytes on amd64).

Locks that opt in to shared priority propagation pass rw_priotracker structs
exactly like rmlocks.

Test Plan

The use case in mind is the PV global lock.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3140
Build 3173: arc lint + arc unit

Event Timeline

cem retitled this revision from to rwlock(9): Add shared priority propagation mode.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added reviewers: jhb, markj, kib.
cem edited edge metadata.

Pick the oldest reader thread as owner for consistency in turnstile.