Skip to content
Snippets Groups Projects
Commit db98ccde authored by Mike Christie's avatar Mike Christie Committed by James Bottomley
Browse files

[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: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent d5390f5f
No related branches found
No related tags found
No related merge requests found
...@@ -1593,7 +1593,8 @@ int iscsi_conn_start(struct iscsi_cls_conn *cls_conn) ...@@ -1593,7 +1593,8 @@ int iscsi_conn_start(struct iscsi_cls_conn *cls_conn)
return -EPERM; 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: " printk("iscsi: invalid burst lengths: "
"first_burst %d max_burst %d\n", "first_burst %d max_burst %d\n",
session->first_burst, session->max_burst); session->first_burst, session->max_burst);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment