mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Revert an untested local change that crept in with the lo_class changes
and subsequently broke the build. This change is supposed to fix the case where doing a mtx_destroy() off a spin mutex while you hold it fails. If it had been tested I would just leave it in, but it hasn't been tested yet, so it will have to wait until later.
This commit is contained in:
parent
d827aa478d
commit
3b783acd2a
1 changed files with 0 additions and 4 deletions
|
|
@ -883,10 +883,6 @@ mtx_destroy(struct mtx *m)
|
|||
else {
|
||||
MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0);
|
||||
|
||||
/* Perform the non-mtx related part of mtx_unlock_spin(). */
|
||||
if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX)
|
||||
spinlock_exit();
|
||||
|
||||
/* Tell witness this isn't locked to make it happy. */
|
||||
WITNESS_UNLOCK(&m->mtx_object, LOP_EXCLUSIVE, __FILE__,
|
||||
__LINE__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue