Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2020 01:31:58 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356743 - head/sys/fs/nfsserver
Message-ID:  <202001150131.00F1VwJ0048350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Jan 15 01:31:57 2020
New Revision: 356743
URL: https://svnweb.freebsd.org/changeset/base/356743

Log:
  nfs: add missing CLTFLAG_MPSAFE annotations

Modified:
  head/sys/fs/nfsserver/nfs_nfsdcache.c
  head/sys/fs/nfsserver/nfs_nfsdport.c

Modified: head/sys/fs/nfsserver/nfs_nfsdcache.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdcache.c	Wed Jan 15 01:31:28 2020	(r356742)
+++ head/sys/fs/nfsserver/nfs_nfsdcache.c	Wed Jan 15 01:31:57 2020	(r356743)
@@ -187,9 +187,9 @@ sysctl_tcphighwater(SYSCTL_HANDLER_ARGS)
 	nfsrc_tcphighwater = newhighwater;
 	return (0);
 }
-SYSCTL_PROC(_vfs_nfsd, OID_AUTO, tcphighwater, CTLTYPE_UINT | CTLFLAG_RW, 0,
-    sizeof(nfsrc_tcphighwater), sysctl_tcphighwater, "IU",
-    "High water mark for TCP cache entries");
+SYSCTL_PROC(_vfs_nfsd, OID_AUTO, tcphighwater,
+    CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(nfsrc_tcphighwater),
+    sysctl_tcphighwater, "IU", "High water mark for TCP cache entries");
 
 static u_int	nfsrc_udphighwater = NFSRVCACHE_UDPHIGHWATER;
 SYSCTL_UINT(_vfs_nfsd, OID_AUTO, udphighwater, CTLFLAG_RW,

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c	Wed Jan 15 01:31:28 2020	(r356742)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c	Wed Jan 15 01:31:57 2020	(r356743)
@@ -188,9 +188,9 @@ sysctl_dsdirsize(SYSCTL_HANDLER_ARGS)
 	nfsrv_dsdirsize = newdsdirsize;
 	return (0);
 }
-SYSCTL_PROC(_vfs_nfsd, OID_AUTO, dsdirsize, CTLTYPE_UINT | CTLFLAG_RW, 0,
-    sizeof(nfsrv_dsdirsize), sysctl_dsdirsize, "IU",
-    "Number of dsN subdirs on the DS servers");
+SYSCTL_PROC(_vfs_nfsd, OID_AUTO, dsdirsize,
+    CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(nfsrv_dsdirsize),
+    sysctl_dsdirsize, "IU", "Number of dsN subdirs on the DS servers");
 
 #define	MAX_REORDERED_RPC	16
 #define	NUM_HEURISTIC		1031



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001150131.00F1VwJ0048350>