RE: How to resurrect offlined SCSI devices?

Infante, Jon
2004-05-26T16:17:14Z

Wouldn't it be acceptable for the lldd to call scsi_scan_host() at this
point to force a scsi mid layer rescan of the devices attached to the hba?
In a fibre channel environment a device can disappear for a long period of
time, then come back. The driver knows exactly when it comes back and should
be able to tell the scsi layer.

Jon Infante
Emulex

-----Original Message-----
From: James Bottomley [mailto:James.Bottomley@SteelEye.com]
Sent: Wednesday, May 26, 2004 7:46 AM
To: Martin Peschke3
Cc: SCSI Mailing List
Subject: Re: How to resurrect offlined SCSI devices?

On Wed, 2004-05-26 at 08:14, Martin Peschke3 wrote:
> Is there a SCSI mid layer interface that allows an lldd to get a
> SCSI devices back online?

actually

echo "running" > /sys/...<device path>.../state

will work from user land.

Really, it isn't safe for a LLD to try to bring a device back online on
its own without user intervention.

James

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html