svn commit: r356433 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Tue Jan 7 04:30:50 UTC 2020
Author: mjg
Date: Tue Jan 7 04:30:49 2020
New Revision: 356433
URL: https://svnweb.freebsd.org/changeset/base/356433
Log:
vfs: annotate numvnodes and vnode_free_list_mtx with __exclusive_cache_line
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Tue Jan 7 04:29:34 2020 (r356432)
+++ head/sys/kern/vfs_subr.c Tue Jan 7 04:30:49 2020 (r356433)
@@ -139,7 +139,7 @@ static int v_inval_buf_range_locked(struct vnode *vp,
* Number of vnodes in existence. Increased whenever getnewvnode()
* allocates a new vnode, decreased in vdropl() for VIRF_DOOMED vnode.
*/
-static unsigned long numvnodes;
+static u_long __exclusive_cache_line numvnodes;
SYSCTL_ULONG(_vfs, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0,
"Number of vnodes in existence");
@@ -227,7 +227,7 @@ static struct mtx mntid_mtx;
* numvnodes
* freevnodes
*/
-static struct mtx vnode_free_list_mtx;
+static struct mtx __exclusive_cache_line vnode_free_list_mtx;
/* Publicly exported FS */
struct nfs_public nfs_pub;
More information about the svn-src-head
mailing list