git: f1e2cc1c667a - main - vfs: drop dedicated sysinit for mountlist_mtx
Mateusz Guzik
mjg at FreeBSD.org
Thu Aug 26 18:52:55 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=f1e2cc1c667a4fd5f3f6097a1e7a4d13bb4d887e
commit f1e2cc1c667a4fd5f3f6097a1e7a4d13bb4d887e
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-26 12:53:10 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-26 18:52:03 +0000
vfs: drop dedicated sysinit for mountlist_mtx
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/vfs_mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the dev-commits-src-main
mailing list