cvs commit: src/sys/dev/pccbb pccbb.c pccbbvar.h

M. Warner Losh imp at bsdimp.com
Wed Jun 11 22:56:39 PDT 2003


In message: <20030611225111.E42109 at root.org>
            Nate Lawson <nate at root.org> writes:
: On Wed, 11 Jun 2003, Warner Losh wrote:
: >   Modified files:
: >     sys/dev/pccbb        pccbb.c pccbbvar.h
: >   Log:
: >   Make cbb interrupts MPSAFE:
: 
: We need to have you at bsdcon 24/7.  ;-)
: 
: > --- src/sys/dev/pccbb/pccbb.c:1.75	Sat Jun  7 13:47:35 2003
: > +++ src/sys/dev/pccbb/pccbb.c	Wed Jun 11 20:37:28 2003
: > @@ -1080,7 +1087,11 @@
: >  	}
: >  	if (sc->flags & CBB_CARD_OK) {
: >  		STAILQ_FOREACH(ih, &sc->intr_handlers, entries) {
: > +			if ((ih->flags & INTR_MPSAFE) != 0)
: > +				mtx_lock(&Giant);
: >  			(*ih->intr)(ih->arg);
: > +			if ((ih->flags & INTR_MPSAFE) != 0)
: > +				mtx_lock(&Giant);
: >  		}
: >  	}
: >  }
: 
: Isn't that second call supposed to be an unlock?

Yes.  I don't know how my system is working at all with that :-(


More information about the cvs-src mailing list