Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2009 17:51:07 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190325 - head/sys/dev/my
Message-ID:  <200903231751.n2NHp79F016277@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Mar 23 17:51:07 2009
New Revision: 190325
URL: http://svn.freebsd.org/changeset/base/190325

Log:
  Release driver lock at the end of the watchdog routine instead of trying to
  acquire it again.
  
  Submitted by:	bland
  MFC after:	3 days

Modified:
  head/sys/dev/my/if_my.c

Modified: head/sys/dev/my/if_my.c
==============================================================================
--- head/sys/dev/my/if_my.c	Mon Mar 23 16:49:00 2009	(r190324)
+++ head/sys/dev/my/if_my.c	Mon Mar 23 17:51:07 2009	(r190325)
@@ -1700,7 +1700,7 @@ my_watchdog(struct ifnet * ifp)
 	my_init_locked(sc);
 	if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))
 		my_start_locked(ifp);
-	MY_LOCK(sc);
+	MY_UNLOCK(sc);
 	return;
 }
 



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