From nobody Fri Dec 24 01:16:27 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 8AFF3190D9BD; Fri, 24 Dec 2021 01:16:27 +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 4JKpzv1zrgz3CQ6; Fri, 24 Dec 2021 01:16:27 +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 258981B390; Fri, 24 Dec 2021 01:16:27 +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 1BO1GR5Q030769; Fri, 24 Dec 2021 01:16:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BO1GRrZ030768; Fri, 24 Dec 2021 01:16:27 GMT (envelope-from git) Date: Fri, 24 Dec 2021 01:16:27 GMT Message-Id: <202112240116.1BO1GRrZ030768@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: dee27397137a - stable/13 - wbwd: 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: dee27397137a1943a509c2ed5fe3741751ccda0f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640308587; 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=4ijiPRITMdk44gMg+0L82ecZ/Z5AF2VhIiW8TxkxKUM=; b=s2wXklLdB5qgOtVs6kXfENhJ9j27cV+Om3AUMOfEG9QQIYkInXIbJ5RQcA3NPTlEUxm9Tu 2+jFLzxC/pUSQpW3KEhATlbT7RmWm4fzHN0yS1/bR+D75haYyU4IfzWv5kbkE1q019QPTg adpGBD9l+Ujd5KCO7h813tl5maoElbdMrw4Y28WbX8mWLXu8nvCUqXSoU6yQuhD0qE3hVs p0U4jlwAG6vWKQy4KmliUeULpoTBDmtYLLRDN5610hvvsuFh/h3W21rvHctSmdo9ayXzCr r+N6Mm1c8WdtvSISoeVLDVdS11p8KWxMI7tiIglEqGCDE2meJ5WViyXQRo7t2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640308587; a=rsa-sha256; cv=none; b=P33zk0lhnOQ4afMbTMEJtoGm/KLU1/mR3xd+qo798PVzK62x4h/DUeLytcMtexTd4PiTeK NDKzW/CY03M36MllT2KPkoe8Ei7x+wLathScO8uIDpbWqyRZR1TKuI9WtykzF0RzD+kb2Q CvDvS/27Fhz7LR2FUgtrWevF8lqULVDWKgze0VEGLifbf0W6pCW2UNHhvc69qWSV6fZaw9 KJj6hZk2anQRxIzeGbUbkHolm72gAPncQlMKd5jjxfFgXFmOu/Jeuorj3Vzs6oNyoAlaQM bDB30/cwJwEx+u7dRbyd9VysTWcP5wo8Vunk7O713UeAO9nLp9jsctskUz3KFg== 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=dee27397137a1943a509c2ed5fe3741751ccda0f commit dee27397137a1943a509c2ed5fe3741751ccda0f Author: Alexander Motin AuthorDate: 2021-12-10 02:13:10 +0000 Commit: Alexander Motin CommitDate: 2021-12-24 01:05:06 +0000 wbwd: Mark sysctls with CTLFLAG_MPSAFE. MFC after: 2 weeks (cherry picked from commit fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0) --- sys/dev/wbwd/wbwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/wbwd/wbwd.c b/sys/dev/wbwd/wbwd.c index 4195089e164b..2c8cc63dbfdc 100644 --- a/sys/dev/wbwd/wbwd.c +++ b/sys/dev/wbwd/wbwd.c @@ -627,15 +627,15 @@ wb_attach(device_t dev) "debug_verbose", CTLFLAG_RW, &sc->debug_verbose, 0, "Enables extra debugging information"); SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "debug", - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0, + CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, sc, 0, sysctl_wb_debug, "A", "Selected register information from last change by driver"); SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "debug_current", - CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT, + CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE, sc, 0, sysctl_wb_debug_current, "A", "Selected register information (may interfere)"); SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "force_timeout", - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT, sc, 0, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_MPSAFE, sc, 0, sysctl_wb_force_test_nmi, "I", "Enable to force watchdog to fire."); /* Register watchdog. */