Date: Tue, 06 Mar 2001 15:22:00 -0700 From: "Justin T. Gibbs" <gibbs@scsiguy.com> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_intr.c src/sys/sys interrupt.h Message-ID: <200103062222.f26MM0O09064@aslan.scsiguy.com> In-Reply-To: Your message of "Tue, 06 Mar 2001 13:38:51 PST." <XFMail.010306133851.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> I haven't tested this either, but it should work. We should also update >> the manual page to indicate that you must deregister from a context >> that can sleep. In SMPNG, there should be very few places where you >> can't sleep. > >Right now interrupt handlers and any place holding a mutex are the only places >where sleeping is bad. Are you referring to bus_teardown_intr(9)? Yes. >> Unecessary locks are, unecessary. > >Well, there's a lot of extra hacking in here to make it unnecessary. Using a >lock would simplify the code immensely and make future maintenance easier. It seems like a pretty standard scheme used for lock free list manipulation. Interrupts happen a lot, so they should be optimized. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103062222.f26MM0O09064>