From nobody Fri Dec 10 02:36:44 2021 X-Original-To: dev-commits-src-main@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 4FF5918E739E; Fri, 10 Dec 2021 02:36:45 +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 4J9FR06vPNz4ssX; Fri, 10 Dec 2021 02:36:44 +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 CDB0F127AA; Fri, 10 Dec 2021 02:36:44 +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 1BA2aiNc061171; Fri, 10 Dec 2021 02:36:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BA2ai7U061170; Fri, 10 Dec 2021 02:36:44 GMT (envelope-from git) Date: Fri, 10 Dec 2021 02:36:44 GMT Message-Id: <202112100236.1BA2ai7U061170@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: 35b2021a0adf - main - ahc: Mark sysctls with CTLFLAG_MPSAFE. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 35b2021a0adf6bd1a41930014bafbc5ee8b6369a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639103805; 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=ovZnQXPhH4tpAOPPtR4Vaea7hdyo2cwyyS+0H5rNrbo=; b=ykujiAdcRv0l66y9n3UaGZWl9tXeGMzMv3hldQVvFu4K9CP5O5CghfZF16QSgE8QaQH3M0 xEZfqBr9EOAMaO97PolBkJzjrhary7rJRXvBRn+UtqsE5AfNOnwXELAd+01L4XjfrRQ0Ly uq93aLdmnbjzEXxyzmmTgvwzViTS3j3OnRDtw/2suZPBFFf2lLGjm/CTHCMf0JzAeX4lnR 5bmX5eGlmcV830o0ogn5Q4WFdtEqoOFFfLKwZLiTUv+RNNHqvjbC6rDG7u6OtdplbVmBZS Wdd0ovhHgO2/WeyomhkE9mkDaVRYw89U7YsxHXXSbmR0/8hr2JUNVrE71Z7lTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639103805; a=rsa-sha256; cv=none; b=maTRIJoMXKg45sfECKMEz7F4XGV6hBBWC2QRivC8KHoxjYdvyzOUUwTJVNdfxAbBvP8I3A WtH2tyVVzjG37FUbqosaOJr1yIvXbj7oDF9gsvd4J1AIF/TizDhNGN1kIQYFgXtuGB88+b pCoYaS9KKhlq4am8CJJu2JU2kAccJYsaWoWE3NUA4djoTxq3X4NpiUWri1OH3MPfGsynht pS63jOQvLjvAva9rHq90aeWJpGpiNBSw4ZxPMIBv/j1JIhnQIa8QPKtZUlK/ywshJwgqKR JpSW5h20kJD8a+0/JGe45AdaWk+771VHQFpMXMLVVr8X5inczV+dG6iIwXwGQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=35b2021a0adf6bd1a41930014bafbc5ee8b6369a commit 35b2021a0adf6bd1a41930014bafbc5ee8b6369a Author: Alexander Motin AuthorDate: 2021-12-10 02:36:21 +0000 Commit: Alexander Motin 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]); }