summaryrefslogtreecommitdiff
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-06-11 13:09:57 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2014-06-12 00:06:42 +0400
commit8846bab180fa2bcfe02d4ba5288fbaba12c8f4f3 (patch)
tree9f5535d5685289e38ebce9f4fbea295cfbe01552 /drivers/scsi/libiscsi.c
parent2426bd456a61407388b6e61fc5f98dbcbebc50e2 (diff)
downloadlinux-8846bab180fa2bcfe02d4ba5288fbaba12c8f4f3.tar.xz
scsi_cmnd: Introduce scsi_transfer_length helper
In case protection information exists on the wire scsi transports should include it in the transfer byte count (even if protection information does not exist in the host memory space). This helper will compute the total transfer length from the scsi command data length and protection attributes. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Cc: stable@vger.kernel.org # 3.15+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
0 files changed, 0 insertions, 0 deletions