[Midnightbsd-cvs] src [8186] trunk/sys/dev/tws/tws.c: spcify MTX_RECURSE for the controller io_lock.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Sep 17 11:33:29 EDT 2016


Revision: 8186
          http://svnweb.midnightbsd.org/src/?rev=8186
Author:   laffer1
Date:     2016-09-17 11:33:29 -0400 (Sat, 17 Sep 2016)
Log Message:
-----------
spcify MTX_RECURSE for the controller io_lock. prevents panics on boot with INVARIANTS enabled.

Modified Paths:
--------------
    trunk/sys/dev/tws/tws.c

Modified: trunk/sys/dev/tws/tws.c
===================================================================
--- trunk/sys/dev/tws/tws.c	2016-09-17 15:31:55 UTC (rev 8185)
+++ trunk/sys/dev/tws/tws.c	2016-09-17 15:33:29 UTC (rev 8186)
@@ -197,7 +197,7 @@
     mtx_init( &sc->q_lock, "tws_q_lock", NULL, MTX_DEF);
     mtx_init( &sc->sim_lock,  "tws_sim_lock", NULL, MTX_DEF);
     mtx_init( &sc->gen_lock,  "tws_gen_lock", NULL, MTX_DEF);
-    mtx_init( &sc->io_lock,  "tws_io_lock", NULL, MTX_DEF);
+    mtx_init( &sc->io_lock,  "tws_io_lock", NULL, MTX_DEF | MTX_RECURSE);
 
     if ( tws_init_trace_q(sc) == FAILURE )
         printf("trace init failure\n");



More information about the Midnightbsd-cvs mailing list