summaryrefslogtreecommitdiff
path: root/drivers/vhost/scsi.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-06-11 12:09:59 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2014-06-11 13:06:50 -0700
commite2a4f55c6498b59a17a85a1bb6db122a993ffe02 (patch)
tree8532312775b3245206db6a91f1d83621f55275df /drivers/vhost/scsi.c
parentd77e65350f2d82dfa0557707d505711f5a43c8fd (diff)
downloadlwn-e2a4f55c6498b59a17a85a1bb6db122a993ffe02.tar.gz
lwn-e2a4f55c6498b59a17a85a1bb6db122a993ffe02.zip
TARGET/sbc,loopback: Adjust command data length in case pi exists on the wire
In various areas of the code, it is assumed that se_cmd->data_length describes pure data. In case that protection information exists over the wire (protect bits is are on) the target core re-calculates the data length from the CDB and the backed device block size (instead of each transport peeking in the cdb). Modify loopback device to include protection information in the transferred data length (like other scsi transports). Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Cc: stable@vger.kernel.org # 3.15+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost/scsi.c')
0 files changed, 0 insertions, 0 deletions