Author: mjg Date: Sat Oct 17 08:47:08 2020 New Revision: 366783 URL: https://svnweb.freebsd.org/changeset/base/366783
Log: vfs: annotate mountlist_mtx with __exclusive_cache_line Modified: head/sys/kern/vfs_mount.c head/sys/sys/mount.h Modified: head/sys/kern/vfs_mount.c ============================================================================== --- head/sys/kern/vfs_mount.c Sat Oct 17 04:14:46 2020 (r366782) +++ head/sys/kern/vfs_mount.c Sat Oct 17 08:47:08 2020 (r366783) @@ -96,7 +96,7 @@ static uma_zone_t mount_zone; struct mntlist mountlist = TAILQ_HEAD_INITIALIZER(mountlist); /* For any iteration/modification of mountlist */ -struct mtx mountlist_mtx; +struct mtx_padalign __exclusive_cache_line mountlist_mtx; MTX_SYSINIT(mountlist, &mountlist_mtx, "mountlist", MTX_DEF); EVENTHANDLER_LIST_DEFINE(vfs_mounted); Modified: head/sys/sys/mount.h ============================================================================== --- head/sys/sys/mount.h Sat Oct 17 04:14:46 2020 (r366782) +++ head/sys/sys/mount.h Sat Oct 17 08:47:08 2020 (r366783) @@ -997,7 +997,7 @@ int vfs_suser(struct mount *, struct thread *); void vfs_unbusy(struct mount *); void vfs_unmountall(void); extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */ -extern struct mtx mountlist_mtx; +extern struct mtx_padalign mountlist_mtx; extern struct nfs_public nfs_pub; extern struct sx vfsconf_sx; #define vfsconf_lock() sx_xlock(&vfsconf_sx) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"