Page MenuHomeFreeBSD

rwlock(9): Add shared priority propagation mode
AbandonedPublic

Authored by cem on Mar 26 2016, 1:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 10, 2:21 PM
Unknown Object (File)
Sun, Sep 6, 11:06 AM
Unknown Object (File)
Sun, Sep 6, 9:45 AM
Unknown Object (File)
Sat, Sep 5, 12:58 PM
Unknown Object (File)
Sat, Sep 5, 11:55 AM
Unknown Object (File)
Sat, Sep 5, 11:25 AM
Unknown Object (File)
Sat, Sep 5, 12:50 AM
Unknown Object (File)
Thu, Sep 3, 4:28 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.