]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_cmnd: Introduce scsi_transfer_length helper
authorSagi Grimberg <sagig@mellanox.com>
Wed, 11 Jun 2014 09:09:57 +0000 (12:09 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 20:06:42 +0000 (13:06 -0700)
commit51989ff52f4b6a0499bc57177bdc83142469e24f
tree9f5535d5685289e38ebce9f4fbea295cfbe01552
parenta26bb4843b41d39b1f234a1c8536ca90afbce7da
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>
include/scsi/scsi_cmnd.h