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:
parent
8a1e7ec2bf
commit
28288268c8
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user