diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-13 05:41:46 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-13 05:41:46 +0000 |
commit | ec9503cd0475c67b81826cc55a0dea1cf8f81775 (patch) | |
tree | faa5c9764e0735ad055fed3a6440173e14455120 /sys/kern/kern_sx.c | |
parent | 3434de5c13263fd8a5698f3c7a01796478e4032a (diff) | |
download | FreeBSD-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.c | 2 |
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); } |