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)
Dec 24 2023, 10:53 PM
Unknown Object (File)
Dec 24 2023, 10:52 PM
Unknown Object (File)
Dec 23 2023, 6:31 PM
Unknown Object (File)
Dec 23 2023, 6:07 PM
Unknown Object (File)
Dec 20 2023, 7:33 AM
Unknown Object (File)
Jul 30 2023, 7:54 AM
Unknown Object (File)
Apr 25 2023, 7:04 PM
Unknown Object (File)
Apr 8 2023, 12:37 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 Skipped
Unit
Tests Skipped

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.