DragonFly kernel List (threaded) for 2007-12
DragonFly BSD
DragonFly kernel List (threaded) for 2007-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: ahc/ahd locking


From: Peter Avalos <pavalos@xxxxxxxxxxxx>
Date: Mon, 31 Dec 2007 17:21:45 -0500
Mail-followup-to: kernel@crater.dragonflybsd.org

On Mon, Dec 31, 2007 at 08:32:40AM -0800, Matthew Dillon wrote:
> 
>     I suggest trying to use the serializing locks (kern/lwkt_serialize.c).
>     Look at various network device drivers on how to install a serializing
>     lock w/ the interrupt.  Note that some reworking of the code might be
>     needed since the ahc/ahd interrupt code probably tries to release/reaquire
>     and/or do other nasty things when, in fact, you just want it to hold the
>     lock through the whole mess.
> 

So basically put a serializer lock in the sotfc, then use that lock when
calling bus_setup_intr?

Are there any particular rules w/ tsleep? Can I use msleep on a serializer?

--Peter

Attachment: pgp00005.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]