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)
Sun, Oct 11, 3:50 PM
Unknown Object (File)
Wed, Oct 7, 7:09 PM
Unknown Object (File)
Wed, Oct 7, 7:07 PM
Unknown Object (File)
Wed, Oct 7, 7:06 PM
Unknown Object (File)
Fri, Oct 2, 11:10 AM
Unknown Object (File)
Thu, Sep 24, 6:01 PM
Unknown Object (File)
Mon, Sep 21, 4:10 AM
Unknown Object (File)
Fri, Sep 18, 12:14 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.