Page MenuHomeFreeBSD

sysctl: mark more nodes as MPSAFE
ClosedPublic

Authored by kaktus on Jan 5 2020, 10:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 8:45 AM
Unknown Object (File)
Mon, Nov 4, 8:45 AM
Unknown Object (File)
Mon, Nov 4, 8:45 AM
Unknown Object (File)
Mon, Nov 4, 8:31 AM
Unknown Object (File)
Oct 3 2024, 1:19 PM
Unknown Object (File)
Oct 1 2024, 8:25 PM
Unknown Object (File)
Sep 14 2024, 2:48 PM
Unknown Object (File)
Sep 7 2024, 5:50 AM

Details

Summary

vm.kvm_size and vm.kvm_free are read only and marked as MPSAFE on i386 already. Mark them as that on amd64 and arm64 too to avoid locking Giant.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Due to resurrected efforts to get rid of Giant, It might be worth to make add a flag now to mark non-mpsafe sysctls, and remove CFLFLAG_MPSAFE. I am not sure how huge the work itself, and the churn, would be.

This revision is now accepted and ready to land.Jan 6 2020, 12:53 AM
This revision was automatically updated to reflect the committed changes.