vfs hash: annotate the lock with __exclusive_cache_line

Note the code does not scale in the current form.
This commit is contained in:
Mateusz Guzik 2020-08-05 19:34:13 +00:00
parent 4f00177887
commit bb62c418fd

View File

@ -43,7 +43,7 @@ static MALLOC_DEFINE(M_VFS_HASH, "vfs_hash", "VFS hash table");
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)