Create the bucket mutexes with MTX_NOWITNESS. There's now a

hard limit of 512 pending mutexes in the witness code and
we can easily have 1 million bucket mutexes initialized before
witness is up and running. Bumping the limit from 512 to 1M
is not really an option here...
This commit is contained in:
Marcel Moolenaar 2008-05-22 06:27:46 +00:00
parent ebe86aacbe
commit c1e0811ea3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179190

View file

@ -439,7 +439,7 @@ pmap_bootstrap()
pte[i].chain = (uintptr_t)(pmap_vhpt_bucket + i);
/* Stolen memory is zeroed! */
mtx_init(&pmap_vhpt_bucket[i].mutex, "VHPT bucket lock", NULL,
MTX_SPIN);
MTX_NOWITNESS | MTX_SPIN);
}
for (i = 1; i < MAXCPU; i++) {