Date: Sun, 3 Aug 2014 05:00:44 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269459 - in head/sys: conf kern Message-ID: <201408030500.s7350iDE096574@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408030500.s7350iDE096574>