diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-04 20:49:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-04 20:49:35 +0000 |
commit | 883d8a55267a8794b49fe0d31af99d0e6f9835ad (patch) | |
tree | d93a45bf9d954de34b759caf280e3fbfe4c5f498 /sys/kern/kern_sx.c | |
parent | 8143d2b80ef3f3c7c569be2745611d6255aefe96 (diff) | |
download | FreeBSD-src-883d8a55267a8794b49fe0d31af99d0e6f9835ad.zip FreeBSD-src-883d8a55267a8794b49fe0d31af99d0e6f9835ad.tar.gz |
Set the lock type equal to the lock name for now as all of the current
sx locks don't use very specific lock names.
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r-- | sys/kern/kern_sx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index fb6647d..2f69a00 100644 --- a/sys/kern/kern_sx.c +++ b/sys/kern/kern_sx.c @@ -70,7 +70,7 @@ sx_init(struct sx *sx, const char *description) ("sx lock %s %p already initialized", description, sx)); bzero(sx, sizeof(*sx)); lock->lo_class = &lock_class_sx; - lock->lo_name = 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); |