From: Sagi Grimberg Date: Wed, 11 Jun 2014 09:09:57 +0000 (+0300) Subject: scsi_cmnd: Introduce scsi_transfer_length helper X-Git-Tag: omap-for-v3.16/fixes-against-rc1~26^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8846bab180fa2bcfe02d4ba5288fbaba12c8f4f3;p=pandora-kernel.git 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 Signed-off-by: Martin K. Petersen Cc: stable@vger.kernel.org # 3.15+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed