MFC: Conditionally lock Giant in xl's taskqueue handler function.

Approved by:	re (scottl)
This commit is contained in:
jhb 2005-08-26 15:31:09 +00:00
parent 7d4d674c95
commit f669c46b33

View File

@ -2089,10 +2089,12 @@ xl_rxeof_task(void *arg, int pending)
{
struct xl_softc *sc = (struct xl_softc *)arg;
NET_LOCK_GIANT();
XL_LOCK(sc);
if (sc->xl_ifp->if_drv_flags & IFF_DRV_RUNNING)
xl_rxeof(sc);
XL_UNLOCK(sc);
NET_UNLOCK_GIANT();
}
/*