I wrote:
The solution is probably to add calls to scsi_remove_device() for each
device on the host as first action in ahc_linux_pci_dev_remove(). That
way, scsi high-level drivers are able to perform their shutdown
functions before the host adapter ceases to operate.
scsi_remove_host(), if called before any ahc_... action, is perhaps be
able to accomplish the same.
More care needs to be taken for hotswappable hardware. I don't know if
aic7xxx falls into this category. If yes, ahc_linux_queue() must be made
aware of that the adapter is gone and has to immediately complete any
commands with DID_NO_CONNECT. Similarly, the eh handlers should take
shortcuts when the adpater is gone.
AFAIK.
--
Stefan Richter
-=====-=-=-= =-=- ---=-
http://arcgraph.de/sr/
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html