git: 35b2021a0adf - main - ahc: Mark sysctls with CTLFLAG_MPSAFE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 02:36:44 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=35b2021a0adf6bd1a41930014bafbc5ee8b6369a commit 35b2021a0adf6bd1a41930014bafbc5ee8b6369a Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-10 02:36:21 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-10 02:36:21 +0000 ahc: Mark sysctls with CTLFLAG_MPSAFE. MFC after: 2 weeks --- sys/dev/aic7xxx/aic79xx_osm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/aic7xxx/aic79xx_osm.c b/sys/dev/aic7xxx/aic79xx_osm.c index 16d39f43a2cc..f98c5bcfe301 100644 --- a/sys/dev/aic7xxx/aic79xx_osm.c +++ b/sys/dev/aic7xxx/aic79xx_osm.c @@ -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]); }