mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue