PERFORCE change 132283 for review

Kip Macy kmacy at FreeBSD.org
Tue Jan 1 20:11:34 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=132283

Change 132283 by kmacy at pandemonium:kmacy:xen31 on 2008/01/02 04:11:14

	allow console lock to be acquired recursively, locking is already such
	a mess here that this is ok for now

Affected files ...

.. //depot/projects/xen31/sys/dev/xen/console/console.c#5 edit

Differences ...

==== //depot/projects/xen31/sys/dev/xen/console/console.c#5 (text+ko) ====

@@ -76,7 +76,7 @@
 #define	XCUNIT(x)	(minor(x))
 #define ISTTYOPEN(tp)	((tp) && ((tp)->t_state & TS_ISOPEN))
 #define CN_LOCK_INIT(x, _name) \
-        mtx_init(&x, _name, NULL, MTX_DEF)
+        mtx_init(&x, _name, NULL, MTX_DEF|MTX_RECURSE)
 #define CN_LOCK(l)        mtx_lock(&(l))
 #define CN_UNLOCK(l)      mtx_unlock(&(l))
 #define CN_LOCK_ASSERT(x)    mtx_assert(&x, MA_OWNED)


More information about the p4-projects mailing list