summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-08-10 21:42:14 +0000
committerkib <kib@FreeBSD.org>2013-08-10 21:42:14 +0000
commit58a6f3bcbe0e4af14ee8a6ac95181f4bddc558c3 (patch)
tree85f82b1986952772d161f14974774d78d77d30cd
parent0e7402e0467f2c12faf1ab60ccb92dec98b5e180 (diff)
downloadFreeBSD-src-58a6f3bcbe0e4af14ee8a6ac95181f4bddc558c3.zip
FreeBSD-src-58a6f3bcbe0e4af14ee8a6ac95181f4bddc558c3.tar.gz
The r254167 moved initialization of the sleepqueues before the witness
is operational. init_sleepqueues() initializes 256 mutexes, which, due to witness still being cold, started to overflow the pending_locks array. As stated in the reported panic message, increase WITNESS_PENDLIST from 768 to 1024, which provides space for additional 256 locks. Reported by: many Tested by: rakuco, bdrewery
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 3b4d7a2..37e8cf2 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -135,7 +135,7 @@ __FBSDID("$FreeBSD$");
#define WITNESS_COUNT 1024
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
#define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */
-#define WITNESS_PENDLIST 768
+#define WITNESS_PENDLIST 1024
/* Allocate 256 KB of stack data space */
#define WITNESS_LO_DATA_COUNT 2048
OpenPOWER on IntegriCloud