Date: Wed, 5 Aug 2020 19:34:13 +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: r363931 - head/sys/kern Message-ID: <202008051934.075JYDL0086767@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Wed Aug 5 19:34:13 2020 New Revision: 363931 URL: https://svnweb.freebsd.org/changeset/base/363931 Log: vfs hash: annotate the lock with __exclusive_cache_line Note the code does not scale in the current form. Modified: head/sys/kern/vfs_hash.c Modified: head/sys/kern/vfs_hash.c ============================================================================== --- head/sys/kern/vfs_hash.c Wed Aug 5 19:15:59 2020 (r363930) +++ head/sys/kern/vfs_hash.c Wed Aug 5 19:34:13 2020 (r363931) @@ -43,7 +43,7 @@ static MALLOC_DEFINE(M_VFS_HASH, "vfs_hash", "VFS hash static LIST_HEAD(vfs_hash_head, vnode) *vfs_hash_tbl; static LIST_HEAD(,vnode) vfs_hash_side; static u_long vfs_hash_mask; -static struct rwlock vfs_hash_lock; +static struct rwlock __exclusive_cache_line vfs_hash_lock; static void vfs_hashinit(void *dummy __unused)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008051934.075JYDL0086767>