I was wondering what the policy on using 
scsi_add_device and scsi_remove_device in the scsi 
lower layer drivers?  

The mpt fusion driver can receive device add/remove
asynchronous events from the firmware.
The driver is notified of device change events from
contents of the driver interrupt routine. 

(1) Is it okay for scsi lower layer drivers
report device changes to the scsi mid-layer when 
the events are received, using scsi_add_device and
scsi_remove_device?

(2) Or do we have to do this thru applications? 
Meaning using SySFS and the following:

echo "1" > /sys/class/scsi_host/host0/scan 
echo "1" > /sys/class/scsi_device/H:C:T:L/device/delete

(3) How does the app know about the asyn events?
Is it okay for scsi lower layer driver use the async API:

kill_fasync(handle, SIGIO,POLL_IN)
fasync_helper()
.fasync entry point in the IOCTL path?

Eric Moore
Standard Storage Products Division
LSI Logic Corporation
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to