Author: jfv
Date: Mon Dec 14 18:43:18 2009
New Revision: 200523
URL: http://svn.freebsd.org/changeset/base/200523

Log:
  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.

Modified:
  head/sys/dev/e1000/e1000_osdep.h

Modified: head/sys/dev/e1000/e1000_osdep.h
==============================================================================
--- head/sys/dev/e1000/e1000_osdep.h    Mon Dec 14 18:27:34 2009        
(r200522)
+++ head/sys/dev/e1000/e1000_osdep.h    Mon Dec 14 18:43:18 2009        
(r200523)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to