diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-04-02 12:58:12 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-12 20:20:06 -0400 |
commit | 96e8e26dd8dd8a60ef1d0dc3ef0d952ffa70a39f (patch) | |
tree | cb8e0fdaa76bf8b30b03d553d9618e14a72285a9 /include/target/iscsi | |
parent | b0055acaedf56a2717a6e2a4b700f1959a1b60df (diff) | |
download | blackbird-op-linux-96e8e26dd8dd8a60ef1d0dc3ef0d952ffa70a39f.tar.gz blackbird-op-linux-96e8e26dd8dd8a60ef1d0dc3ef0d952ffa70a39f.zip |
scsi: target/iscsi: Only send R2T if needed
If an initiator submits more immediate data than the size derived from the
SCSI CDB, do not send any R2T to the initiator. This scenario is triggered
by the libiscsi test ALL.iSCSIResiduals.WriteVerify16Residuals if the iSCSI
target driver is modified to discard too large immediate data buffers
instead of trying to parse these as an iSCSI PDU. This patch avoids that a
negative xfer_len value is passed to iscsit_add_r2t_to_list() if too large
immediate data buffers are handled correctly.
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target/iscsi')
0 files changed, 0 insertions, 0 deletions