From nobody Fri Dec 10 02:13:55 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 E548E18E25FD; Fri, 10 Dec 2021 02:13:55 +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 4J9Dwg50MCz4pdt; Fri, 10 Dec 2021 02:13:55 +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 8B540121E7; Fri, 10 Dec 2021 02:13:55 +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 1BA2DtbM034526; Fri, 10 Dec 2021 02:13:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BA2DtLx034525; Fri, 10 Dec 2021 02:13:55 GMT (envelope-from git) Date: Fri, 10 Dec 2021 02:13:55 GMT Message-Id: <202112100213.1BA2DtLx034525@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: fdec27ed82ea - main - wbwd: 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: fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639102435; 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=4ypekRtTbuz0s2w+ouJIqNVig3cJJevaVxvvHz7BsoQ=; b=pl82VZDvnVy8rmHGfGT/yqMutAMUK2SXNUzkjvLEHe831JMusCS/n7rBjn3HKX0rI1BZkq 4UuyXiYRvz4a0rfsMQMaeyOpttPZXzU/CkrXUeV126eLokQLwkkN70BTFMrkkXTa4evB7O kVZNiSXHrtz+lwO0l/VzM0OSYgXApOcmd+tMcZkoDb1/+uGbJW2yOjG9d9hjou/WzzC9qj 1m7qPly/n+Q8yaav7KIogqiz1N9ZYoyHXxNrQzueywXWIML6Q9DXnUWBKFmMBwRJmXJaEt F1Ol7SnDbzpglBvm8zkRo9xuBOjygebc/0z3+JnTr572zXc+VlsHf6THApo7kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639102435; a=rsa-sha256; cv=none; b=M4PbHmgo+kStkpiYHJXBNbnjIilEoMcHMpQAwogJFHlaa23lLB9Kg9nsk6nVgTgsbM2Sev yGzxnzvAXcGzE9nqnErdTraUhobkiUYkThxiKsS5TF/EFvlPlM1zrbHa8MdK7/qkE7UOYP RxqpFz3dCi4rUAvLCLsYWX6tOG7X95fxgZCkbIsfP5Q3wtk5YhhLYzUOBtCX8i4e+8GgZM pO/2VlraJGQVV4XpPHDdZW0fHegf/7c8VRPy06+dnTbDvxmSkj5K9i+B3BYMTB8m8GPiN7 Bfh1QiSRJfEv7Cnoq4xMQ9jduWkPBuLtC6MQwXEPalFwxJOYl46K9jkypIp0Kw== 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=fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0 commit fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0 Author: Alexander Motin AuthorDate: 2021-12-10 02:13:10 +0000 Commit: Alexander Motin CommitDate: 2021-12-10 02:13:10 +0000 wbwd: Mark sysctls with CTLFLAG_MPSAFE. MFC after: 2 weeks --- 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. */