FUJITA Tomonori wrote:
> From: Christoph Hellwig <[EMAIL PROTECTED]>
...
>> As James already said the device argument should not be needed at all.
...
> +int scsi_dma_map(struct scsi_cmnd *cmd)
> +{
> + int nseg = 0;
> +
> + if (scsi_sg_count(cmd)) {
> + struct device *dev = cmd->device->host->shost_gendev.parent;
...
As a side note:
What is currently not supported by SCSI mid layer is that an sdev could
be moved from one initiator port to another. If that happens, transport
layer drivers have to destroy the sdev and create a new one. Or they
could represent /all/ initiator ports by a single shost, but then they
can't use the two new scsi_dma_ wrappers. (Assuming there aren't any
other issues which would prevent the single-shost approach.)
--
Stefan Richter
-=====-=-=== -=-= -==-=
http://arcgraph.de/sr/
-
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