Luben Tuikov wrote:
Even simpler: the transport layer, calls SCSI Core, saying: "Hey here is
a pointer to struct scsi_domain_device. If you want, you an send REPORT
LUNS and other things to it."
For the SG_IO ioctl, /dev/sg and request_queue usage, SCSI core must map
an address (currently HCIL) into a scsi_domain_device pointer. These
upper layer kernel elements rely on this "SCSI address", and rely on the
fact that SCSI core can route from a block device straight to a SCSI
LLD, using nothing more than this "SCSI address."
That is the heart of the routing/addressing that the SCSI core must perform.
Right now the addressing is hardcoded to HCIL. But that can be
changed... One proposal was to use (host,string) identifiers.
Jeff
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html