git: 7f703988b5e5 - stable/13 - ahc: Mark sysctls with CTLFLAG_MPSAFE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Dec 2021 01:16:29 UTC
The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=7f703988b5e5c735dd261bae79ab61c368106681 commit 7f703988b5e5c735dd261bae79ab61c368106681 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-10 02:36:21 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-24 01:05:13 +0000 ahc: Mark sysctls with CTLFLAG_MPSAFE. MFC after: 2 weeks (cherry picked from commit 35b2021a0adf6bd1a41930014bafbc5ee8b6369a) --- 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 31750eced9c5..1c01cbbcfa07 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]); }