diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-05-30 13:57:14 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2007-06-01 12:57:17 -0400 |
commit | d473cc7f15f64ab8a90c3d7288ef30f46785d8d5 (patch) | |
tree | bef7d5c01842430fcd93f6a235ad404d1de1f5a3 /include | |
parent | 8ad5781ae9702a8f95cfdf30967752e4297613ee (diff) |
[SCSI] iscsi: Some fixes in preparation for bidirectional support - exp_datasn
This patch fixes handling of expected datasn/r2tsn as received from
target. It is done according to: T10 rfc3720 section 3.2.2.3. Data Sequencing.
. unify expected datasn/r2tsn into one counter
. calculate than check expected datasn/r2tsn. On error print a message
and fail the request. (TODO use iscsi retransmits)
. remove the FIXME ;)
. avoid zero length memset
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/libiscsi.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index deae90a56a0d..61e069206ac5 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -99,7 +99,6 @@ struct iscsi_cmd_task { | |||
99 | */ | 99 | */ |
100 | struct iscsi_cmd *hdr; | 100 | struct iscsi_cmd *hdr; |
101 | int itt; /* this ITT */ | 101 | int itt; /* this ITT */ |
102 | int datasn; /* DataSN */ | ||
103 | 102 | ||
104 | uint32_t unsol_datasn; | 103 | uint32_t unsol_datasn; |
105 | int imm_count; /* imm-data (bytes) */ | 104 | int imm_count; /* imm-data (bytes) */ |