Re: [PATCH] scsi_set_host_offline (resend)

James Bottomley
2003-03-29T21:54:59Z

On Sat, 2003-03-29 at 14:53, Matthew Dharm wrote:
> My understanding was that I couldn't call set_device_offline with the host
> lock held, which is a problem because I need the host lock to traverse the
> device list.

The solution we're talking about here is from the user level hotplug
scripts. Once we get the remove-single-device fixed, you simply use the
device hot unplug script to traverse the attached SCSI devices, clean up
the user land (kill processes, unmount filesystems etc.) and then blow
the devices away. After the host has no devices, you should simply be
able to trigger a host removal from within your driver.

James