Page MenuHomeFreeBSD

D3903.diff
No OneTemporary

D3903.diff

Index: head/sys/dev/mge/if_mgevar.h
===================================================================
--- head/sys/dev/mge/if_mgevar.h
+++ head/sys/dev/mge/if_mgevar.h
@@ -137,10 +137,8 @@
#define MGE_RECEIVE_LOCK_ASSERT(sc) mtx_assert(&(sc)->receive_lock, MA_OWNED)
#define MGE_GLOBAL_LOCK(sc) do { \
- if ((mtx_owned(&(sc)->transmit_lock) ? 1 : 0) != \
- (mtx_owned(&(sc)->receive_lock) ? 1 : 0)) { \
- panic("mge deadlock possibility detection!"); \
- } \
+ mtx_assert(&(sc)->transmit_lock, MA_NOTOWNED); \
+ mtx_assert(&(sc)->receive_lock, MA_NOTOWNED); \
mtx_lock(&(sc)->transmit_lock); \
mtx_lock(&(sc)->receive_lock); \
} while (0)

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 5, 11:03 PM (4 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40264742
Default Alt Text
D3903.diff (691 B)

Event Timeline