Page MenuHomeFreeBSD

Eliminate lock recursion from turnstiles.
ClosedPublic

Authored by jeff on Dec 10 2019, 6:16 AM.
Tags
None
Referenced Files
F145196203: D22746.id65449.diff
Tue, Feb 17, 12:07 AM
Unknown Object (File)
Mon, Feb 16, 1:18 AM
Unknown Object (File)
Jan 16 2026, 7:35 PM
Unknown Object (File)
Jan 8 2026, 10:51 AM
Unknown Object (File)
Jan 8 2026, 8:34 AM
Unknown Object (File)
Jan 5 2026, 8:36 PM
Unknown Object (File)
Dec 30 2025, 7:36 PM
Unknown Object (File)
Dec 14 2025, 9:39 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.