mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +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:
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