Here is a patch for review. This is to fix proper mid-layer to mpt fw mapping. This is in preparation for James Bottomley's SPI and RAID transport, and SGI's FC Transport support. The SAS mapping implementation is currently broken in several areas, to include error handling, which this patch fix's. The hd->Target[] data area will go away once in driver domain validation is replaced with James SPI transport support. This is replaced with the usage of scsi_device->hostdata and scsi_target->hostdata. I've added support for scsi_host->target_alloc and scsi_host->target_destroy. You will notice that hd->Target[] only is present in the domain validation path. I've also added scsi_host->module = THIS_MODULE, so you will not be able to unload the driver when file handle is open. TODO: (1) IOCTL path - add support for converting scsi-mid layer to f/w mapping. (2) RAID support in SAS - This implementation of sas transport layer doesn't recognize raid volumes; i.e. a raid volume doesn't exist as a remote phy, so can we report it so block layer sees it?? Signed-off-by: Eric Moore <Eric.Moore@xxxxxxxx>
Attachment:
mapping.patch
Description: Binary data