Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 15:41:58 +0000 (UTC)
From:      Andrew Gallatin <gallatin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200845 - head/sys/dev/mxge
Message-ID:  <200912221541.nBMFfwrc068288@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912221541.nBMFfwrc068288>