Turn off the premature locking in xl. The driver tries to use the mutexes
as spl replacements, but you cant sleep while holding mutexes. This change has been made on many other drivers.
This commit is contained in:
parent
750c7540cc
commit
f44a0bb8f9
@ -589,8 +589,14 @@ struct xl_softc {
|
||||
struct mtx xl_mtx;
|
||||
};
|
||||
|
||||
#if 0
|
||||
/* These are a bit premature. The driver still tries to sleep with locks. */
|
||||
#define XL_LOCK(_sc) mtx_lock(&(_sc)->xl_mtx)
|
||||
#define XL_UNLOCK(_sc) mtx_unlock(&(_sc)->xl_mtx)
|
||||
#else
|
||||
#define XL_LOCK(x) do { } while (0)
|
||||
#define XL_UNLOCK(x) do { } while (0)
|
||||
#endif
|
||||
|
||||
#define xl_rx_goodframes(x) \
|
||||
((x.xl_upper_frames_ok & 0x03) << 8) | x.xl_rx_frames_ok
|
||||
|
Loading…
x
Reference in New Issue
Block a user