vfs: annotate mountlist_mtx with __exclusive_cache_line
This commit is contained in:
parent
5853735d5d
commit
ad89066af4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366783
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user