Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 08/30/2007 04:58:25
Module Name:	src
Committed By:	dyoung
Date:		Thu Aug 30 04:58:25 UTC 2007

Modified Files:
	src/sys/net: if_gre.c

Log Message:
Do not hold the mutex as much in gre_thread1().  Move initial mutex
acquisition and final release out into gre_thread().  This will
fix a locking bug that LOCKDEBUG exposed: holding a spinlock over
an sosend() call is a no-no.

Cosmetic: join some lines, remove some unnecessary curly braces.


To generate a diff of this commit:
cvs rdiff -r1.102 -r1.103 src/sys/net/if_gre.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.