]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (18 of many)
authorkaktus <kaktus@FreeBSD.org>
Thu, 27 Feb 2020 13:12:14 +0000 (13:12 +0000)
committerkaktus <kaktus@FreeBSD.org>
Thu, 27 Feb 2020 13:12:14 +0000 (13:12 +0000)
commit4cefab8ea62caa434245999722149038b7a31ce5
treefd34811eab00afcf77454bbbec22e9ec812278ee
parent558067cc6a246e018ff1a89e4cd6a5fa737ee21f
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (18 of many)

r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.

This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.

Mark all obvious cases as MPSAFE.  All entries that haven't been marked
as MPSAFE before are by default marked as NEEDGIANT

Reviewed by: cem
Approved by: csprng, kib (mentor, blanket)
Differential Revision: https://reviews.freebsd.org/D23841
sys/dev/random/fortuna.c
sys/dev/random/ivy.c
sys/dev/random/random_harvestq.c
sys/dev/random/random_infra.c