svn commit: r201511 - stable/6/sys/dev/mxge

Andrew Gallatin gallatin at FreeBSD.org
Mon Jan 4 15:34:49 UTC 2010


Author: gallatin
Date: Mon Jan  4 15:34:49 2010
New Revision: 201511
URL: http://svn.freebsd.org/changeset/base/201511

Log:
  MFC 200845:
    Don't take the driver mutex in mxge_tick(), as it
    is run with the mutex held.

Modified:
  stable/6/sys/dev/mxge/if_mxge.c
Directory Properties:
  stable/6/sys/   (props changed)
  stable/6/sys/contrib/pf/   (props changed)
  stable/6/sys/dev/cxgb/   (props changed)

Modified: stable/6/sys/dev/mxge/if_mxge.c
==============================================================================
--- stable/6/sys/dev/mxge/if_mxge.c	Mon Jan  4 15:23:32 2010	(r201510)
+++ stable/6/sys/dev/mxge/if_mxge.c	Mon Jan  4 15:34:49 2010	(r201511)
@@ -3638,9 +3638,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-all mailing list