]> err.no Git - linux-2.6/commit
[SCSI] iscsi: increment expstatsn during login
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 3 May 2006 00:46:47 +0000 (19:46 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 10 May 2006 15:13:21 +0000 (10:13 -0500)
commit8d2860b3c3e933304f49171770658c00ed26fd79
tree979395449d53d41bd22732a4be1387f9af73a994
parentbe2df72e7ec5fa5e6e1ccccab6cef97ecbb9c191
[SCSI] iscsi: increment expstatsn during login

debugged by Ming and Rohan:

The problem Ming and Rohan debugged was that during a normal session
login, open-iscsi is not incrementing the exp_statsn counter. It was
stuck at zero. From the RFC, it looks like if the login response PDU has
a successful status then we should be incrementing that value. Also from
the RFC, it looks like if when we drop a connection then reconnect, we
should be using the exp_statsn from the old connection in the next
relogin attempt.

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/libiscsi.c
drivers/scsi/scsi_transport_iscsi.c
include/scsi/iscsi_if.h