cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h

Justin T. Gibbs gibbs at scsiguy.com
Thu May 1 10:24:25 PDT 2003


> In message: <1742240000.1051807110 at aslan.btc.adaptec.com>
>             "Justin T. Gibbs" <gibbs at scsiguy.com> writes:
> : I don't see that there is any problem with the above approach (it is the
> : same flow as is used by the ahc and ahd driver) but I still don't see why
> : a gone flag is required.  Just run through the handler as you normally
> : would in the shared interrupt case.  The handler will exit if written
> : correctly.
> 
> You assume that the hardware is still there in this case.

That is a different issue than the one that was under discussion.
The strategy for dealing with the device being gone will have to
vary from device to device, but using a gone flag *does not close
that race either*.  The card may be ejected while you are in the
middle of your interrupt handler, but *after* you have checked the
gone flag.  Dealing with this correctly may be two expensive for a
PCI card put into a server so you may end up with two interrupt
handlers: one that is installed if the device is a cardbus card,
another that is installed for PCI cards.

--
Justin



More information about the cvs-src mailing list