summaryrefslogtreecommitdiffstats
path: root/include/scsi/libiscsi.h
diff options
context:
space:
mode:
authorMike Christie2007-07-26 19:46:48 +0200
committerJames Bottomley2007-07-27 15:12:05 +0200
commite07264071f7f2b02a2973cb28d9fdf5eb8866cc1 (patch)
tree25ca60eeb25dbb519428d3e4bbea77d978e5a4a1 /include/scsi/libiscsi.h
parent[SCSI] iscsi_tcp, ib_iser Enable module refcounting for iscsi host template (diff)
downloadkernel-qcow2-linux-e07264071f7f2b02a2973cb28d9fdf5eb8866cc1.tar.gz
kernel-qcow2-linux-e07264071f7f2b02a2973cb28d9fdf5eb8866cc1.tar.xz
kernel-qcow2-linux-e07264071f7f2b02a2973cb28d9fdf5eb8866cc1.zip
[SCSI] libiscsi: fix cmd seqeunce number checking
We should not be checking the cmd windown for just handling r2t responses. And if the window closes in on us, always have scsi-ml requeue the command from our queuecommand function. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r--include/scsi/libiscsi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 3f631b08a1ab..007d442412e2 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -210,6 +210,9 @@ struct iscsi_session {
uint32_t exp_cmdsn;
uint32_t max_cmdsn;
+ /* This tracks the reqs queued into the initiator */
+ uint32_t queued_cmdsn;
+
/* configuration */
int initial_r2t_en;
unsigned max_r2t;