forked from luck/tmp_suning_uos_patched
[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>
This commit is contained in:
parent
d5390f5f78
commit
db98ccde08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user