1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

ahc: Mark sysctls with CTLFLAG_MPSAFE.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2021-12-09 21:36:21 -05:00
parent 35efbedc98
commit 35b2021a0a

View File

@ -165,7 +165,7 @@ ahd_sysctl(struct ahd_softc *ahd)
ahd_sysctl_node_descriptions[AHD_SYSCTL_ROOT]);
SYSCTL_ADD_PROC(&ahd->sysctl_ctx[AHD_SYSCTL_ROOT],
SYSCTL_CHILDREN(ahd->sysctl_tree[AHD_SYSCTL_ROOT]), OID_AUTO,
"clear", CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, ahd,
"clear", CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_MPSAFE, ahd,
0, ahd_clear_allcounters, "IU", "Clear all counters");
for (i = AHD_SYSCTL_SUMMARY; i < AHD_SYSCTL_NUMBER; i++)
@ -185,7 +185,7 @@ ahd_sysctl(struct ahd_softc *ahd)
SYSCTL_ADD_PROC(&ahd->sysctl_ctx[AHD_SYSCTL_DEBUG],
SYSCTL_CHILDREN(ahd->sysctl_tree[AHD_SYSCTL_DEBUG]),
OID_AUTO, ahd_sysctl_errors_elements[i],
CTLFLAG_RW | CTLTYPE_UINT | CTLFLAG_NEEDGIANT, ahd, i,
CTLFLAG_RW | CTLTYPE_UINT | CTLFLAG_MPSAFE, ahd, i,
ahd_set_debugcounters, "IU",
ahd_sysctl_errors_descriptions[i]);
}