Re: [PATCH 1/19] add data buffer accessors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FUJITA Tomonori wrote:
> From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
...
>> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux