Date: Mon, 19 Aug 2002 15:24:04 -0600 From: "Justin T. Gibbs" <gibbs@scsiguy.com> To: "Moore, Eric Dean" <emoore@lsil.com>, freebsd-scsi@freebsd.org Subject: Re: CAM: splcam/splx question Message-ID: <4001654336.1029792244@aslan.btc.adaptec.com> In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E5701265CB9@EXA-ATLANTA.se.lsil.com> References: <0E3FA95632D6D047BA649F95DAB60E5701265CB9@EXA-ATLANTA.se.lsil.co m>
next in thread | previous in thread | raw e-mail | index | archive | help
> We are developing a CAM driver. > Im using splcam/splx in hopes of disable interrupts during the xxx_intr > (interrupt time). During interrupt time, you are already operating with an spl mask that will block your own interrupt from being re-entered assuming you specified the correct mask when registering your interrupt with the OS. Paired mask = splcam()/splx(mask) calls should be harmless inside an interrupt context so long as the calls are paired. Perhaps you are splx'ing with a bogus mask? BTW, spl's only do something in -stable. In -current, non-mpsafe drivers are operating under the Giant kernel lock. Mp-safe drivers need to use mutexes. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4001654336.1029792244>