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)
Sun, Jan 12, 5:49 PM
Unknown Object (File)
Mon, Dec 30, 7:07 AM
Unknown Object (File)
Dec 14 2024, 12:19 AM
Unknown Object (File)
Dec 4 2024, 4:00 PM
Unknown Object (File)
Dec 4 2024, 10:29 AM
Unknown Object (File)
Nov 25 2024, 4:15 PM
Unknown Object (File)
Nov 25 2024, 1:35 PM
Unknown Object (File)
Nov 22 2024, 9:21 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable