summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sx.c
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2003-07-13 01:22:21 +0000
committerDon Lewis <truckman@FreeBSD.org>2003-07-13 01:22:21 +0000
commit857d9c60d0afb185a9f137dbaba6b65da66aef81 (patch)
tree717b3d174838551975ecc8e26f0d8c55fe89302c /sys/kern/kern_sx.c
parent3c63a8b4fc12fa021ce01685560897528e48864a (diff)
Notes
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r--sys/kern/kern_sx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 7db9e723a222..4256b0a052a9 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -74,7 +74,7 @@ sx_init(struct sx *sx, const char *description)
lock->lo_type = lock->lo_name = description;
lock->lo_flags = LO_WITNESS | LO_RECURSABLE | LO_SLEEPABLE |
LO_UPGRADABLE;
- sx->sx_lock = mtx_pool_find(sx);
+ sx->sx_lock = mtx_pool_find(mtxpool_lockbuilder, sx);
sx->sx_cnt = 0;
cv_init(&sx->sx_shrd_cv, description);
sx->sx_shrd_wcnt = 0;