git: 4e74b80165b0 - stable/12 - nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Thu, 12 Oct 2023 05:10:57 UTC
The branch stable/12 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=4e74b80165b0e465dd37691c2f82a6c997c0ab55

commit 4e74b80165b0e465dd37691c2f82a6c997c0ab55
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-10-09 10:30:21 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
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