ahc/ahd locking

Peter Avalos pavalos at theshell.com
Mon Dec 31 14:27:34 PST 2007

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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20071231/1e4c39ab/attachment-0018.obj>

More information about the Kernel mailing list