diff options
author | imp <imp@FreeBSD.org> | 2014-08-03 05:00:43 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-08-03 05:00:43 +0000 |
commit | 283af5830e8f0751a16bd406de93686b35f39291 (patch) | |
tree | ec113533443008f5507bdf91e1b54cddd2171dcb | |
parent | ffb6d5c3967d1342fa5e2d6f51c8ea8aff1419e2 (diff) | |
download | FreeBSD-src-283af5830e8f0751a16bd406de93686b35f39291.zip FreeBSD-src-283af5830e8f0751a16bd406de93686b35f39291.tar.gz |
Make the witness lock limit an option.
-rw-r--r-- | sys/conf/options | 1 | ||||
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options index 8ec07e0..8e6f95e 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -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 diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 8d25461..309f2e2 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -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) |