Date: Tue, 7 Jan 2020 04:30:50 +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: r356433 - head/sys/kern Message-ID: <202001070430.0074UoEY033296@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001070430.0074UoEY033296>