]> err.no Git - linux-2.6/commit
[SCSI] iscsi: Some fixes in preparation for bidirectional support - exp_datasn
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 30 May 2007 17:57:14 +0000 (12:57 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 1 Jun 2007 16:57:17 +0000 (12:57 -0400)
commitd473cc7f15f64ab8a90c3d7288ef30f46785d8d5
treebef7d5c01842430fcd93f6a235ad404d1de1f5a3
parent8ad5781ae9702a8f95cfdf30967752e4297613ee
[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>
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h