Since em(4) taskqueue is a new network context, we need to conditionally
lock Giant here. Submitted by: Andrey V. Elsukov <bu7cher yandex.ru>
This commit is contained in:
parent
6edb555dbc
commit
d640400bc5
@ -1101,6 +1101,7 @@ em_handle_rxtx(void *context, int pending)
|
||||
struct adapter *adapter = context;
|
||||
struct ifnet *ifp;
|
||||
|
||||
NET_LOCK_GIANT();
|
||||
ifp = adapter->ifp;
|
||||
|
||||
/*
|
||||
@ -1120,7 +1121,7 @@ em_handle_rxtx(void *context, int pending)
|
||||
}
|
||||
|
||||
em_enable_intr(adapter);
|
||||
return;
|
||||
NET_UNLOCK_GIANT();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user