diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-08-26 12:53:10 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-08-26 18:52:03 +0000 |
commit | f1e2cc1c667a4fd5f3f6097a1e7a4d13bb4d887e (patch) | |
tree | 523065ffcda847475bdb62f165ddd7223f0e6f04 /sys/kern/vfs_mount.c | |
parent | 620cf65c2bc4035a07e1152da419a4e60d36ff9b (diff) | |
download | src-f1e2cc1c667a4fd5f3f6097a1e7a4d13bb4d887e.tar.gz src-f1e2cc1c667a4fd5f3f6097a1e7a4d13bb4d887e.zip |
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 40581d9e6e79..73fd8321c9da 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -122,7 +122,6 @@ struct mntlist mountlist = TAILQ_HEAD_INITIALIZER(mountlist); /* For any iteration/modification of mountlist */ struct mtx_padalign __exclusive_cache_line mountlist_mtx; -MTX_SYSINIT(mountlist, &mountlist_mtx, "mountlist", MTX_DEF); EVENTHANDLER_LIST_DEFINE(vfs_mounted); EVENTHANDLER_LIST_DEFINE(vfs_unmounted); @@ -188,6 +187,7 @@ vfs_mount_init(void *dummy __unused) deferred_unmount_retry_delay_hz = hz; mount_zone = uma_zcreate("Mountpoints", sizeof(struct mount), NULL, NULL, mount_init, mount_fini, UMA_ALIGN_CACHE, UMA_ZONE_NOFREE); + mtx_init(&mountlist_mtx, "mountlist", NULL, MTX_DEF); } SYSINIT(vfs_mount, SI_SUB_VFS, SI_ORDER_ANY, vfs_mount_init, NULL); |