2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

[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:
Mike Christie 2006-08-31 18:09:31 -04:00 committed by James Bottomley
parent d5390f5f78
commit db98ccde08

View File

@ -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);