How to resurrect offlined SCSI devices?

Martin Peschke3
2004-05-26T13:14:33Z

Is there a SCSI mid layer interface that allows an lldd to get a
SCSI devices back online?

The SCSI mid layer sets devices offline if it fails to recover them.
Nevertheless, an lldd might see some event that indicates
that a device has become accessible again. Why not give the mid
layer a hint in order to have it re-enable the device?
One aspect that could make this harder is that the mid layer
may wish to test the device instead of buying the lldd's indication
unseen. The alternative would be to try to use the device and to
offline it again if needed.

I have seen a system that loses paths (EVMS) to SCSI
devices that were set offline. Getting these paths operational
again seems to be required for a reliable failback.

Is scsi_device_resume() a good starting point?
Any thoughts?

Cheers,
Martin