Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2008 04:11:34 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132283 for review
Message-ID:  <200801020411.m024BYDP002669@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132283

Change 132283 by kmacy@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)



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