From 9939f0f11cda9b15a80477537c3b7b547ddf3a24 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 4 Apr 2002 20:49:35 +0000 Subject: [PATCH] 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. --- sys/kern/kern_sx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index fb6647d942d8..2f69a0094e89 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);