projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5390f5
)
[SCSI] libiscsi: only check burst lengths when sending unsol data
author
Mike Christie
<michaelc@cs.wisc.edu>
Thu, 31 Aug 2006 22:09:31 +0000
(18:09 -0400)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Sat, 2 Sep 2006 18:37:28 +0000
(13:37 -0500)
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>
drivers/scsi/libiscsi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/libiscsi.c
b/drivers/scsi/libiscsi.c
index fb65311c81ddf289d2ec29492b2ba48d83d4e023..864c6284e83c36dcf430f5e4a61c965f6fff8a62 100644
(file)
--- 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);