svn commit: r269459 - in head/sys: conf kern
Warner Losh
imp at FreeBSD.org
Sun Aug 3 05:00:44 UTC 2014
Author: imp
Date: Sun Aug 3 05:00:43 2014
New Revision: 269459
URL: http://svnweb.freebsd.org/changeset/base/269459
Log:
Make the witness lock limit an option.
Modified:
head/sys/conf/options
head/sys/kern/subr_witness.c
Modified: head/sys/conf/options
==============================================================================
--- head/sys/conf/options Sun Aug 3 03:51:33 2014 (r269458)
+++ head/sys/conf/options Sun Aug 3 05:00:43 2014 (r269459)
@@ -685,6 +685,7 @@ WITNESS opt_global.h
WITNESS_KDB opt_witness.h
WITNESS_NO_VNODE opt_witness.h
WITNESS_SKIPSPIN opt_witness.h
+WITNESS_COUNT opt_witness.h
OPENSOLARIS_WITNESS opt_global.h
# options for ACPI support
Modified: head/sys/kern/subr_witness.c
==============================================================================
--- head/sys/kern/subr_witness.c Sun Aug 3 03:51:33 2014 (r269458)
+++ head/sys/kern/subr_witness.c Sun Aug 3 05:00:43 2014 (r269459)
@@ -132,7 +132,9 @@ __FBSDID("$FreeBSD$");
/* Define this to check for blessed mutexes */
#undef BLESSING
+#ifndef WITNESS_COUNT
#define WITNESS_COUNT 1536
+#endif
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
#define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */
#define WITNESS_PENDLIST (1024 + MAXCPU)
More information about the svn-src-head
mailing list