Oops, the witness mutex is a spin lock, so use MTX_SPIN in the call to

mtx_init().  Since the witness code ignores its internal mutex, this
doesn't result in any functional change.
This commit is contained in:
jhb 2000-12-12 00:37:18 +00:00
parent 8a1e7ec2bf
commit 28288268c8
3 changed files with 3 additions and 3 deletions

View File

@ -1085,7 +1085,7 @@ enroll(const char *description, int flag)
return (NULL);
if (w_inited == 0) {
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_DEF);
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_SPIN);
for (i = 0; i < WITNESS_COUNT; i++) {
w = &w_data[i];
witness_free(w);

View File

@ -1085,7 +1085,7 @@ enroll(const char *description, int flag)
return (NULL);
if (w_inited == 0) {
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_DEF);
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_SPIN);
for (i = 0; i < WITNESS_COUNT; i++) {
w = &w_data[i];
witness_free(w);

View File

@ -1085,7 +1085,7 @@ enroll(const char *description, int flag)
return (NULL);
if (w_inited == 0) {
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_DEF);
mtx_init(&w_mtx, "witness lock", MTX_COLD | MTX_SPIN);
for (i = 0; i < WITNESS_COUNT; i++) {
w = &w_data[i];
witness_free(w);