diff options
author | kib <kib@FreeBSD.org> | 2016-06-13 03:39:16 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-06-13 03:39:16 +0000 |
commit | 501a76d1371658899cc866079b41c579cf4e0a69 (patch) | |
tree | d64dc3fce1d1a28b8b07289ac82cb5e6f4304494 | |
parent | b1cc7f99f953a302eb717869e77ac409cb7f6a79 (diff) | |
download | FreeBSD-src-501a76d1371658899cc866079b41c579cf4e0a69.zip FreeBSD-src-501a76d1371658899cc866079b41c579cf4e0a69.tar.gz |
Explicitely initialize sw_alloc_sx. Currently it is not initialized
but works due to zeroed out bss on startup.
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (hrs)
-rw-r--r-- | sys/vm/swap_pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 6ab965b..4af2eb9 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -488,6 +488,7 @@ swap_pager_init(void) TAILQ_INIT(&swap_pager_object_list[i]); mtx_init(&sw_alloc_mtx, "swap_pager list", NULL, MTX_DEF); mtx_init(&sw_dev_mtx, "swapdev", NULL, MTX_DEF); + sx_init(&sw_alloc_sx, "swspsx"); sx_init(&swdev_syscall_lock, "swsysc"); /* |