mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove the MTX_SPIN flag to the shared code MUTEX
as it was causing a panic, also took the opportunity to rename the lock for clarity.
This commit is contained in:
parent
8b3433dc98
commit
92cc9dde8b
1 changed files with 1 additions and 2 deletions
|
|
@ -82,8 +82,7 @@
|
|||
/* Mutex used in the shared code */
|
||||
#define E1000_MUTEX struct mtx
|
||||
#define E1000_MUTEX_INIT(mutex) mtx_init((mutex), #mutex, \
|
||||
MTX_NETWORK_LOCK, \
|
||||
MTX_DEF | MTX_SPIN)
|
||||
"E1000 Shared Lock", MTX_DEF)
|
||||
#define E1000_MUTEX_DESTROY(mutex) mtx_destroy(mutex)
|
||||
#define E1000_MUTEX_LOCK(mutex) mtx_lock(mutex)
|
||||
#define E1000_MUTEX_TRYLOCK(mutex) mtx_trylock(mutex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue