svn commit: r363931 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Wed Aug 5 19:34:14 UTC 2020
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)
More information about the svn-src-all
mailing list