summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sx.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-11-13 05:41:46 +0000
committerkmacy <kmacy@FreeBSD.org>2006-11-13 05:41:46 +0000
commitec9503cd0475c67b81826cc55a0dea1cf8f81775 (patch)
treefaa5c9764e0735ad055fed3a6440173e14455120 /sys/kern/kern_sx.c
parent3434de5c13263fd8a5698f3c7a01796478e4032a (diff)
downloadFreeBSD-src-ec9503cd0475c67b81826cc55a0dea1cf8f81775.zip
FreeBSD-src-ec9503cd0475c67b81826cc55a0dea1cf8f81775.tar.gz
track lock class name in a way that doesn't break WITNESS
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 23fdb72..ecab0e9 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -86,7 +86,7 @@ sx_init(struct sx *sx, const char *description)
cv_init(&sx->sx_excl_cv, description);
sx->sx_excl_wcnt = 0;
sx->sx_xholder = NULL;
- lock_profile_object_init(&sx->sx_object, description);
+ lock_profile_object_init(&sx->sx_object, &lock_class_sx, description);
lock_init(&sx->sx_object, &lock_class_sx, description, NULL,
LO_WITNESS | LO_RECURSABLE | LO_SLEEPABLE | LO_UPGRADABLE);
}
OpenPOWER on IntegriCloud