Page MenuHomeFreeBSD

rmlock: Micro-optimize read locking
ClosedPublic

Authored by markj on Feb 25 2022, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 22, 11:05 PM
Unknown Object (File)
Oct 1 2024, 5:49 PM
Unknown Object (File)
Oct 1 2024, 4:05 PM
Unknown Object (File)
Oct 1 2024, 8:39 AM
Unknown Object (File)
Sep 27 2024, 11:11 AM
Unknown Object (File)
Sep 25 2024, 4:21 AM
Unknown Object (File)
Sep 24 2024, 4:48 PM
Unknown Object (File)
Sep 24 2024, 1:09 AM
Subscribers

Details

Summary

Use get_pcpu() instead of an open-coded pcpu_find(td->td_oncpu). This
eliminates some unneccessary memory accesses and on amd64 results in a
shorter instruction sequence. Note that get_pcpu() didn't exist when
rmlocks were added.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44577
Build 41465: arc lint + arc unit