From nobody Thu Oct 12 05:10:57 2023 X-Original-To: dev-commits-src-branches@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 4S5d5G1r8Vz4xFXd; Thu, 12 Oct 2023 05:10:58 +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 4S5d5G0spfz4gY7; Thu, 12 Oct 2023 05:10:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087458; 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=23id9oJCnLNEHftFC2ZNV/0E9rWYDvQbP0Jz4GFvjwQ=; b=xJ+Fho1C8aa1MJ0wblStEWqmzD4Xf3dWVax8NBfxuWNDH8/gupWSRGJ2BnaGyNItnXELem A+qHWkg3eFEv4mCoQ00tLeRPPNkG8l3ujXnwfJT2FB2sU/wR9OoPKMfsD4rQgE226z+ndn vDqnKwMKKiKxur0mB9Gdv7qzWStNjdlMkQp1Y+FLV4thbiPBris7pxP4PJt7qXF+ljhfMo 95p8owlAk6DtcuYQylcHr0rA0/7AJU/0vyUI3m28mbp8GGIH2PfUJFp6SqaqlAm/Ig7txH BvAxPBMG1EjLJAaM2USjFZhtag2FNu/aCp44zNtPvnblRkUVlAMshSml/TYsUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697087458; a=rsa-sha256; cv=none; b=HW9dGNSDFRdO0XEyosWk7BpBny4CggBgADUWVIpi6TKjRCmiX+Jboya3HmnrCS4jAKaNKY /jBV4kO3hPMfarG4p19Z0c2G9tJ2H8mLTMU2ITI53CLcx4Jli7Mvfs/8GRb8Ma8cmwNZVP CbRQs/ZNuGK26cioP8tep7Jlol6teTZOP2vwYj2TOBUqP8ZbiHSNmJCRJaBpWMlfKVMi0D 9grZ93oDS+VUwLcjL2FgS0ogJvfQnzejD6zmY42ZgMNYfUInEzMq9nWDsyZyzsXFBncx7l b7btHOuld9mJqRb3EQzCXNgzsZiuoxp057WWO9+OTJb+Y0obyAVN5b0OsvWl/A== 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=1697087458; 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=23id9oJCnLNEHftFC2ZNV/0E9rWYDvQbP0Jz4GFvjwQ=; b=MKhp1fa9vfzW7OVWH3rz8COLt2f2Dvqoxc+oreb/SJUU6sut5g2YJxzBmhs1Fzt67+gmEm ytP0mgTeZoTIerwfbBmXSWwAzWq4jgz3WDCv1/gfKNU5YosENhMCEjrjRFQPSUWcZDrrDe GL46hSiuWon2WX6mWLjbkJvSwovkv4ArRMCLG5AdrOE3XFckvvSwX+XltFNDtYevg7z5SZ aa5VWUYvwJFGl5D+jzoN+zc50Jo6CIU73IlGIKGgaL0K/rZZj0VJH1Xu6HGAllz2kLDoeB lLUjM+jI3rMInaPvN9+W8xjZvT2g2ouXdbKEKM1dedUnzjDf3yUCn0Lf6Jt3qA== 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 4S5d5F6xFnzqvh; Thu, 12 Oct 2023 05:10:57 +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 39C5Av9k071359; Thu, 12 Oct 2023 05:10:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C5Avoh071356; Thu, 12 Oct 2023 05:10:57 GMT (envelope-from git) Date: Thu, 12 Oct 2023 05:10:57 GMT Message-Id: <202310120510.39C5Avoh071356@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 4e74b80165b0 - stable/12 - nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/12 X-Git-Reftype: branch X-Git-Commit: 4e74b80165b0e465dd37691c2f82a6c997c0ab55 Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4e74b80165b0e465dd37691c2f82a6c997c0ab55 commit 4e74b80165b0e465dd37691c2f82a6c997c0ab55 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 05:09:31 +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 (cherry picked from commit 95c01e9b329406699e89907167b5c3c9effbcbca) (cherry picked from commit 3133f4d9dec495275120f920c0939b2752ac3d4d) (cherry picked from commit 234919330105ef0b06548fb92d411ad1939ac0bb) --- sys/fs/nfsclient/nfs_clnfsiod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/fs/nfsclient/nfs_clnfsiod.c b/sys/fs/nfsclient/nfs_clnfsiod.c index 3f0fb777e37b..0675ed1ae404 100644 --- a/sys/fs/nfsclient/nfs_clnfsiod.c +++ b/sys/fs/nfsclient/nfs_clnfsiod.c @@ -124,8 +124,9 @@ out: NFSUNLOCKIOD(); return (0); } -SYSCTL_PROC(_vfs_nfs, OID_AUTO, iodmin, CTLTYPE_UINT | CTLFLAG_RW, 0, - sizeof (nfs_iodmin), sysctl_iodmin, "IU", +SYSCTL_PROC(_vfs_nfs, OID_AUTO, iodmin, + CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, + 0, sizeof (nfs_iodmin), sysctl_iodmin, "IU", "Min number of nfsiod kthreads to keep as spares"); static int