]> git.baikalelectronics.ru Git - kernel.git/commit
libiscsi, iser: Adjust data_length to include protection information
authorSagi Grimberg <sagig@mellanox.com>
Wed, 11 Jun 2014 09:09:58 +0000 (12:09 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 20:06:45 +0000 (13:06 -0700)
commit7cee286b096f9e481102b77c3bde736df7b712b1
tree04adddbd63d60ebdaae4ee5a7c320dd6b9412d76
parent4e4db0e5926ac830ff863a2bdfd26f057ae56590
libiscsi, iser: Adjust data_length to include protection information

In case protection information exists over the wire
iscsi header data length is required to include it.
Use protection information aware scsi helpers to set
the correct transfer length.

In order to avoid breakage, remove iser transfer length
checks for each task as they are not always true and
somewhat redundant anyway.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: stable@vger.kernel.org # 3.15+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/scsi/libiscsi.c