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)
Thu, Jan 30, 2:43 PM
Unknown Object (File)
Wed, Jan 29, 1:33 AM
Unknown Object (File)
Wed, Jan 22, 8:14 PM
Unknown Object (File)
Dec 15 2024, 4:11 AM
Unknown Object (File)
Dec 1 2024, 9:51 AM
Unknown Object (File)
Nov 25 2024, 10:49 AM
Unknown Object (File)
Nov 25 2024, 2:48 AM
Unknown Object (File)
Nov 22 2024, 6:43 PM

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.