From nobody Fri Dec 24 01:16:29 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6C5CD190DB9F; Fri, 24 Dec 2021 01:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JKpzy17Jxz3CBM; Fri, 24 Dec 2021 01:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 716661AF3C; Fri, 24 Dec 2021 01:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BO1GTxW030819; Fri, 24 Dec 2021 01:16:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BO1GT5F030818; Fri, 24 Dec 2021 01:16:29 GMT (envelope-from git) Date: Fri, 24 Dec 2021 01:16:29 GMT Message-Id: <202112240116.1BO1GT5F030818@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 7f703988b5e5 - stable/13 - ahc: Mark sysctls with CTLFLAG_MPSAFE. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7f703988b5e5c735dd261bae79ab61c368106681 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640308590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=niKrqFflPR9KSy4ZRtdIdYhqiypcZ/yf2DywF5QSGwE=; b=dphFvfMvIF0os2xiEOPb57g56AvD/iOZKRHUUGC8z4lnx/dvUAKlFtvjkElDrCKwMCSmDf j2/Owo75PIih1ldo6ZCeuSxcUe0wdN+R0VQKrylAkmAuw0NgfJD3BJstmKXEfy1bDT8+vG QfTvZ1NEys2LYIdEWDjFMhs/cxeSittJCVQrNSpKoYMuMvHcBr6hkjwgO3kjPJAzy/bTSB GOEyY6QZElY6tSrvrPZOuOHyfOwlmQFAYWnMQ+fIBfeoKh9cxyZ9pxOi3leONVMjiEE6mI mf+xYyvUlDOzFq8gDu2ks/jpzmMePGLFlIRQ5vtoalHqEXglIgERxoMtYsXlwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640308590; a=rsa-sha256; cv=none; b=BMxM4Hz3D4kfwE5tZdzEplHZPeCG5utuIT1P/8r77d2qqxJfYt3AOn8x6xbE2d85qQ+5XJ 944xFrAVEfph30+iG0iYsOQyR4GieJWK1WQHNGotFc14px33oD74Lr8Q1dxphE1RwviPVu yCQ2Dsv/VZwRAsJ1DGyqt9VUpw36WytqRsTkNEYH1pep/kv/3GbOd+YUyuXNMfbfwxfEQ0 0cdCefRyvUUgIZUQfQtq2Fg/MZFwuUJHkuSmOIXtHe9KoSNwUm+3JQx/0KVYSnj2BacF33 LLHWcfllGQRH3HcwvnA212thcaekMxDRhsn7O2ECel52cI32tBfiXDrkVlKYrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=7f703988b5e5c735dd261bae79ab61c368106681 commit 7f703988b5e5c735dd261bae79ab61c368106681 Author: Alexander Motin AuthorDate: 2021-12-10 02:36:21 +0000 Commit: Alexander Motin 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]); }