Date: Fri, 10 Dec 2021 02:36:44 GMT From: Alexander Motin <mav@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 35b2021a0adf - main - ahc: Mark sysctls with CTLFLAG_MPSAFE. Message-ID: <202112100236.1BA2ai7U061170@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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]); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112100236.1BA2ai7U061170>