diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-06-11 12:09:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-30 20:14:00 -0700 |
commit | 7d9710389b7c1f975e290c0f1b557245a3abe0d5 (patch) | |
tree | 238f717188fdf66d7b0db90307d5d0837585cd40 /fs | |
parent | 04423ddea30a7fb7232636eda8aed55ea5b972fe (diff) |
TARGET/sbc,loopback: Adjust command data length in case pi exists on the wire
commit e2a4f55c6498b59a17a85a1bb6db122a993ffe02 upstream.
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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions