[master] 5cc2036 Also make this debugging hash class' locks dynamic

Poul-Henning Kamp phk at FreeBSD.org
Thu Dec 17 00:26:51 CET 2015


commit 5cc2036a5645cd7ddd9f1568d13142611b2cfe79
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Dec 16 23:26:32 2015 +0000

    Also make this debugging hash class' locks dynamic

diff --git a/bin/varnishd/hash/hash_simple_list.c b/bin/varnishd/hash/hash_simple_list.c
index d99bb89..a946d16 100644
--- a/bin/varnishd/hash/hash_simple_list.c
+++ b/bin/varnishd/hash/hash_simple_list.c
@@ -35,6 +35,8 @@
 
 #include "hash/hash_slinger.h"
 
+static struct VSC_C_lck *lck_hsl;
+
 /*--------------------------------------------------------------------*/
 
 static VTAILQ_HEAD(, objhead)	hsl_head = VTAILQ_HEAD_INITIALIZER(hsl_head);
@@ -49,6 +51,7 @@ static void __match_proto__(hash_start_f)
 hsl_start(void)
 {
 
+	lck_hsl = Lck_CreateClass("hsl");
 	Lck_New(&hsl_mtx, lck_hsl);
 }
 
diff --git a/include/tbl/locks.h b/include/tbl/locks.h
index ccef6d5..25502e1 100644
--- a/include/tbl/locks.h
+++ b/include/tbl/locks.h
@@ -35,7 +35,6 @@ LOCK(busyobj)
 LOCK(cli)
 LOCK(exp)
 LOCK(hcb)
-LOCK(hsl)
 LOCK(lru)
 LOCK(mempool)
 LOCK(objhdr)



More information about the varnish-commit mailing list