Page MenuHomeFreeBSD

Eliminate lock recursion from turnstiles.
ClosedPublic

Authored by jeff on Dec 10 2019, 6:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 28, 2:20 PM
Unknown Object (File)
Sat, Mar 28, 6:28 AM
Unknown Object (File)
Sat, Mar 28, 5:03 AM
Unknown Object (File)
Fri, Mar 27, 11:51 PM
Unknown Object (File)
Fri, Mar 6, 2:09 AM
Unknown Object (File)
Feb 26 2026, 5:54 PM
Unknown Object (File)
Feb 17 2026, 12:07 AM
Unknown Object (File)
Feb 16 2026, 1:18 AM
Subscribers

Details

Summary

This avoids the one place we recursively lock turnstiles. In highly contended workloads the recursive locking actually imposes a performance penalty. We trade failed atomic cmpsets and multiple modifications to the lock cacheline for a few pointer comparisons.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28055
Build 26203: arc lint + arc unit

Event Timeline

jeff added reviewers: jhb, kib, mav.
jeff set the repository for this revision to rS FreeBSD src repository - subversion.
This revision is now accepted and ready to land.Dec 10 2019, 2:42 PM
This revision was automatically updated to reflect the committed changes.
jeff added a commit: rS355782: schedlock 3/4.