git: ccf8370b8193 - releng/14.0 - nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Oct 2023 15:02:49 UTC
The branch releng/14.0 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=ccf8370b819377684b4a1e1f21b6d81d1d4c4c4b
commit ccf8370b819377684b4a1e1f21b6d81d1d4c4c4b
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-10-09 10:30:21 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-10-12 14:59:52 +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
Approved by: re (gjb)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42113
(cherry picked from commit 95c01e9b329406699e89907167b5c3c9effbcbca)
(cherry picked from commit 3133f4d9dec495275120f920c0939b2752ac3d4d)
---
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