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)
Apr 27 2026, 8:56 PM
Unknown Object (File)
Apr 24 2026, 8:02 PM
Unknown Object (File)
Apr 23 2026, 10:09 AM
Unknown Object (File)
Apr 22 2026, 9:23 PM
Unknown Object (File)
Apr 21 2026, 4:11 AM
Unknown Object (File)
Apr 14 2026, 8:57 PM
Unknown Object (File)
Apr 5 2026, 4:49 PM
Unknown Object (File)
Mar 28 2026, 2:20 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.