1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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.
This commit is contained in:
John Baldwin 2002-04-04 20:49:35 +00:00
parent b6396e1656
commit 9939f0f11c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93812

View File

@ -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);