From nobody Mon Oct 09 10:31:55 2023 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 4S3wM00YhXz4xKmf; Mon, 9 Oct 2023 10:31:56 +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 4S3wM005B7z4Cpw; Mon, 9 Oct 2023 10:31:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696847516; 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=Sn8LlBJNznV0u+lqRGCrgndlzw8iaxLMYLD++h2HEUU=; b=RGkXTprjfqlYi+ZHKdczki4YsdAydLJXsGBKRpEJILTiFNA9rgQeZIcNHzbgUCCCKNN6Bj RZTm0NeX1NgMej4N+Iut6+oUuVisLG2tq+C7vkQZgKRp/PJ2XPV4YUNhH9XN6xv94je+UP zpoacsi8sF3qpIC9dr0mpuTTZxVKWd/HSyTtWUs2rFpKq5kwDkEeKRBnxy4k04n+Vqm3Kz vLcHCsFUs+sY03Mg7r7mTGXqqISUSuNYb1U9Vj5QGfBKavbJ86gXhmEtZfBcvlQalfZW+7 QRNASapSwQmXA1XPTRfa5AnaWeKUg7EC3pl/LR9XN5q/AHrZNdV3pmM7UM3apg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696847516; a=rsa-sha256; cv=none; b=a57iOcxy0MvmkIkgN4+Mp8RtU0LAiHtX1Ublk382XIAJpwTLQm8uXp76TZZDHID/7b4UpR eWF2qJ5Ru9T7hFUD0Cc5BTjv93ZsA0nnV2WEFfevBwU8DMIVjtd4msjKuxNmAxzIryzDAa CSt4LITu+iL5NbZVA7WqC7wmkp0lg06RHXH1nzv7z4K+tjxxcskQJonZ3DLZ6NzSqC8rdA FRkQ5AUS7JoS76tqBlk4/65qbD+9RpzRc7hujdcY3U6ZGlP2/dOHOwzknwIVx+kCFmrnuJ 8+loJQ7+4YykeCPkefMeLv7lxR39CUN3ITrlIooODAZalhnFMkVkAC22M/Gy6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696847516; 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=Sn8LlBJNznV0u+lqRGCrgndlzw8iaxLMYLD++h2HEUU=; b=wcSsUgkRlCO3nBbJMxYJyHQwA35AbWfTttXWYxL71EFW3dGuJ6IA/rsbfrbnZ9BULlWabJ WTszDh2HrW9QEHbRLOchCiocD/+WCOaG12/hr21X9ZaBDm9OkJLvaiVuuLpK/IqVinx4gx HGL7eWHoYsvtJcUpeE4VkHUE24Vve5PKHY4ukvn3pR9PcAfi9n8Rfh+Tdu67uYy5c5D1WG WM8tlxxRP2h8gO1I9nR+bEVc0LSdxPX3v6xC1521x+bB+2PkxlrlTB2pCuTS7gkweRAN0m WKU0TWssc5Z+pzrYV6htTqkIx1dA8Q+aj4nH6btURh7yqTWKKYHYmmtbyFMpWw== 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 4S3wLz6Hwnzs81; Mon, 9 Oct 2023 10:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 399AVtf7003570; Mon, 9 Oct 2023 10:31:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 399AVtIN003567; Mon, 9 Oct 2023 10:31:55 GMT (envelope-from git) Date: Mon, 9 Oct 2023 10:31:55 GMT Message-Id: <202310091031.399AVtIN003567@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 95c01e9b3294 - main - nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95c01e9b329406699e89907167b5c3c9effbcbca Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=95c01e9b329406699e89907167b5c3c9effbcbca commit 95c01e9b329406699e89907167b5c3c9effbcbca Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-09 10:30:21 +0000 nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'vfs.nfs.iodmin' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 --- sys/fs/nfsclient/nfs_clnfsiod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/fs/nfsclient/nfs_clnfsiod.c b/sys/fs/nfsclient/nfs_clnfsiod.c index 5dc1d5643591..f4f97a8646f0 100644 --- a/sys/fs/nfsclient/nfs_clnfsiod.c +++ b/sys/fs/nfsclient/nfs_clnfsiod.c @@ -123,8 +123,8 @@ out: return (0); } SYSCTL_PROC(_vfs_nfs, OID_AUTO, iodmin, - CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, sizeof (nfs_iodmin), - sysctl_iodmin, "IU", + CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, + 0, sizeof (nfs_iodmin), sysctl_iodmin, "IU", "Min number of nfsiod kthreads to keep as spares"); static int