svn commit: r200845 - head/sys/dev/mxge
Andrew Gallatin
gallatin at FreeBSD.org
Tue Dec 22 15:41:59 UTC 2009
Author: gallatin
Date: Tue Dec 22 15:41:58 2009
New Revision: 200845
URL: http://svn.freebsd.org/changeset/base/200845
Log:
Don't take the driver mutex in mxge_tick(), as it
is run with the mutex held.
Submitted by: rwatson
MFC after: 3 days
Modified:
head/sys/dev/mxge/if_mxge.c
Modified: head/sys/dev/mxge/if_mxge.c
==============================================================================
--- head/sys/dev/mxge/if_mxge.c Tue Dec 22 15:13:16 2009 (r200844)
+++ head/sys/dev/mxge/if_mxge.c Tue Dec 22 15:41:58 2009 (r200845)
@@ -3956,9 +3956,7 @@ mxge_tick(void *arg)
uint16_t cmd;
ticks = mxge_ticks;
- mtx_lock(&sc->driver_mtx);
running = sc->ifp->if_drv_flags & IFF_DRV_RUNNING;
- mtx_unlock(&sc->driver_mtx);
if (running) {
/* aggregate stats from different slices */
pkts = mxge_update_stats(sc);
More information about the svn-src-head
mailing list