summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-08-31 18:09:31 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-02 13:37:28 -0500
commitdb98ccde0881b8247acb52dece6d94ed770a7aa5 (patch)
tree6c3c32696b253bac7ed10625a0c57562d4bf7796 /drivers/scsi/libiscsi.c
parentd5390f5f788f01788e9dfd41ad516a2908901610 (diff)
downloadop-kernel-dev-db98ccde0881b8247acb52dece6d94ed770a7aa5.zip
op-kernel-dev-db98ccde0881b8247acb52dece6d94ed770a7aa5.tar.gz
[SCSI] libiscsi: only check burst lengths when sending unsol data
The first burst length is only relevant if immedate data = Yes or if Initial R2T is No Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index fb65311..864c628 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1593,7 +1593,8 @@ int iscsi_conn_start(struct iscsi_cls_conn *cls_conn)
return -EPERM;
}
- if (session->first_burst > session->max_burst) {
+ if ((session->imm_data_en || !session->initial_r2t_en) &&
+ session->first_burst > session->max_burst) {
printk("iscsi: invalid burst lengths: "
"first_burst %d max_burst %d\n",
session->first_burst, session->max_burst);
OpenPOWER on IntegriCloud