From nobody Sun Dec 26 17:03:37 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 AE7371926B99; Sun, 26 Dec 2021 17:03:37 +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 4JMRvs2rk4z3FGZ; Sun, 26 Dec 2021 17:03:37 +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 41CCE64EC; Sun, 26 Dec 2021 17:03:37 +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 1BQH3btL040794; Sun, 26 Dec 2021 17:03:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BQH3bCF040793; Sun, 26 Dec 2021 17:03:37 GMT (envelope-from git) Date: Sun, 26 Dec 2021 17:03:37 GMT Message-Id: <202112261703.1BQH3bCF040793@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: fe27f1db5f0b - main - kern: Remove CTLFLAG_NEEDGIANT from some sysctls. 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: fe27f1db5f0b67ad2681a35253f7c1a4dc9874f8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640538217; 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=nKcVeYoITuOjkJf3swyBe4D0I8NwVoKub4HMCjHVx50=; b=CiA3RmQDIHFd5A5A2P5b/cbKjSWNUfMDtIm0mUNPZH9I15wkcmn6dvHxNvA9k3FwC11jAU iQPXVEPdVYlvIeBUN8yjUsAUOqVMTZI33tmgO1p4/wfgJ36rCc+0u5WPEDh/bqH2/umYxk UR8fI06bWbc96dpxUduizz6cKO2Kuj7nhU4Zmw+pgtCK0FYCDe+ErijCC0AswL8K13L4wG XSpZwagK3PtrcM68L/Qb47izbVdj9Ev2WNVlIvvuoqFcM893wlMdv/VYSFxvX/KhOkNC8i kp8QO8BX7nAXHN7T81ZZ/d+j7p/ma2VxnLRF9mW8qY79PkvXJfscDyVrcqRLig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640538217; a=rsa-sha256; cv=none; b=qhN5yZRUsNLErnaboWE6iL6a24oZIq44xycyp15xTg0csaMy3Dp0i5mnykewh0LLETtfYu SUc9c57nLfmXsXoRNcSNNWJ7PfOYVLCwyOfNpV8OaODvLNG1QDjg3VcMJuvyEYnYKz35ef KVkywjsmpHywGT9K6XMqIT48k9Prb4O2xWS2LAU3aXAzgpZmmNwXPmWZWjfxXVTmp0HoGt LuyhcPhqu/0/P5Lgmw6BQa60FuZe4zobXItMy8JG6OXUmFNZTqpjVI9UKqhq+cbpAhnW83 wXw4H+WhU5HAW3W0cIEDV713e/hNDP2jvPuon/NLIJwk3TeSS+BGW7CCsTT1vg== 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=fe27f1db5f0b67ad2681a35253f7c1a4dc9874f8 commit fe27f1db5f0b67ad2681a35253f7c1a4dc9874f8 Author: Alexander Motin AuthorDate: 2021-12-26 17:02:28 +0000 Commit: Alexander Motin CommitDate: 2021-12-26 17:03:33 +0000 kern: Remove CTLFLAG_NEEDGIANT from some sysctls. MFC after: 2 weeks --- sys/kern/kern_acct.c | 2 +- sys/kern/kern_sendfile.c | 2 +- sys/kern/kern_sig.c | 2 +- sys/kern/uipc_sockbuf.c | 2 +- sys/kern/uipc_socket.c | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 7a3ff1700b66..0a29be2dcedf 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -187,7 +187,7 @@ sysctl_acct_chkfreq(SYSCTL_HANDLER_ARGS) return (0); } SYSCTL_PROC(_kern, OID_AUTO, acct_chkfreq, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, &acctchkfreq, 0, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &acctchkfreq, 0, sysctl_acct_chkfreq, "I", "frequency for checking the free space"); diff --git a/sys/kern/kern_sendfile.c b/sys/kern/kern_sendfile.c index fb5258e31f35..30383490ca41 100644 --- a/sys/kern/kern_sendfile.c +++ b/sys/kern/kern_sendfile.c @@ -158,7 +158,7 @@ sfstat_sysctl(SYSCTL_HANDLER_ARGS) return (SYSCTL_OUT(req, &s, sizeof(s))); } SYSCTL_PROC(_kern_ipc, OID_AUTO, sfstat, - CTLTYPE_OPAQUE | CTLFLAG_RW | CTLFLAG_NEEDGIANT, NULL, 0, + CTLTYPE_OPAQUE | CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, 0, sfstat_sysctl, "I", "sendfile statistics"); diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 4b036395f133..32fd2d2652d3 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -3560,7 +3560,7 @@ sysctl_debug_num_cores_check (SYSCTL_HANDLER_ARGS) return (0); } SYSCTL_PROC(_debug, OID_AUTO, ncores, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(int), + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, sizeof(int), sysctl_debug_num_cores_check, "I", "Maximum number of generated process corefiles while using index format"); diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index bb179043682e..d4db19598392 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -1784,7 +1784,7 @@ sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) static int dummy; SYSCTL_INT(_kern, KERN_DUMMY, dummy, CTLFLAG_RW | CTLFLAG_SKIP, &dummy, 0, ""); SYSCTL_OID(_kern_ipc, KIPC_MAXSOCKBUF, maxsockbuf, - CTLTYPE_ULONG | CTLFLAG_RW | CTLFLAG_NEEDGIANT, &sb_max, 0, + CTLTYPE_ULONG | CTLFLAG_RW | CTLFLAG_MPSAFE, &sb_max, 0, sysctl_handle_sb_max, "LU", "Maximum socket buffer size"); SYSCTL_ULONG(_kern_ipc, KIPC_SOCKBUF_WASTE, sockbuf_waste_factor, CTLFLAG_RW, diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 6661b8f7b898..33dfe6cb2176 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -239,11 +239,11 @@ sysctl_somaxconn(SYSCTL_HANDLER_ARGS) return (0); } SYSCTL_PROC(_kern_ipc, OID_AUTO, soacceptqueue, - CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(int), + CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, sizeof(int), sysctl_somaxconn, "I", "Maximum listen socket pending connection accept queue size"); SYSCTL_PROC(_kern_ipc, KIPC_SOMAXCONN, somaxconn, - CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT, 0, + CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_MPSAFE, 0, sizeof(int), sysctl_somaxconn, "I", "Maximum listen socket pending connection accept queue size (compat)"); @@ -375,7 +375,7 @@ sysctl_maxsockets(SYSCTL_HANDLER_ARGS) return (error); } SYSCTL_PROC(_kern_ipc, OID_AUTO, maxsockets, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, &maxsockets, 0, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &maxsockets, 0, sysctl_maxsockets, "IU", "Maximum number of sockets available");