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)
Sat, May 9, 4:28 AM
Unknown Object (File)
Wed, Apr 29, 4:00 AM
Unknown Object (File)
Wed, Apr 29, 4:00 AM
Unknown Object (File)
Mon, Apr 27, 4:43 PM
Unknown Object (File)
Apr 16 2026, 1:02 PM
Unknown Object (File)
Apr 11 2026, 8:16 AM
Unknown Object (File)
Apr 7 2026, 1:06 AM
Unknown Object (File)
Apr 5 2026, 7:12 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